mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-02 09:42:31 +02:00
multi: cap anchors feerate at configurable maximum
This commit caps the update fee the initiator will send when the anchors channel type is used. We do not limit anything on the receiver side. 10 sat/vbyte is the current default max fee rate we use. This should be enough to ensure propagation before anchoring down the commitment transaction.
This commit is contained in:
@@ -17,6 +17,11 @@ import (
|
||||
// anchorSize is the constant anchor output size.
|
||||
const anchorSize = btcutil.Amount(330)
|
||||
|
||||
// DefaultAnchorsCommitMaxFeeRateSatPerVByte is the default max fee rate in
|
||||
// sat/vbyte the initiator will use for anchor channels. This should be enough
|
||||
// to ensure propagation before anchoring down the commitment transaction.
|
||||
const DefaultAnchorsCommitMaxFeeRateSatPerVByte = 10
|
||||
|
||||
// CommitmentKeyRing holds all derived keys needed to construct commitment and
|
||||
// HTLC transactions. The keys are derived differently depending whether the
|
||||
// commitment transaction is ours or the remote peer's. Private keys associated
|
||||
|
Reference in New Issue
Block a user