mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
htlcswitch: raise max cltv limit to 2016 blocks
The previous limit of 1008 proved to be low, given that almost 50% of the network still advertises CLTV deltas of 144 blocks, possibly resulting in routes with many hops failing.
This commit is contained in:
parent
cbf7e4886a
commit
4e1658a02f
@ -39,11 +39,12 @@ const (
|
|||||||
// willing to lock its own funds too, could force the funds of this node
|
// willing to lock its own funds too, could force the funds of this node
|
||||||
// to be locked up for an indefinite (max int32) number of blocks.
|
// to be locked up for an indefinite (max int32) number of blocks.
|
||||||
//
|
//
|
||||||
// The value 1008 corresponds to on average one week worth of blocks and
|
// The value 2016 corresponds to on average two weeks worth of blocks
|
||||||
// is based on the maximum number of hops (20), the default cltv delta
|
// and is based on the maximum number of hops (20), the default CLTV
|
||||||
// (40) and some extra margin to account for the other lightning
|
// delta (40), and some extra margin to account for the other lightning
|
||||||
// implementations.
|
// implementations and past lnd versions which used to have a default
|
||||||
DefaultMaxOutgoingCltvExpiry = 1008
|
// CLTV delta of 144.
|
||||||
|
DefaultMaxOutgoingCltvExpiry = 2016
|
||||||
|
|
||||||
// DefaultMinLinkFeeUpdateTimeout represents the minimum interval in
|
// DefaultMinLinkFeeUpdateTimeout represents the minimum interval in
|
||||||
// which a link should propose to update its commitment fee rate.
|
// which a link should propose to update its commitment fee rate.
|
||||||
|
Loading…
Reference in New Issue
Block a user