routing: increase MinCLTVDelta from 18 to 24 blocks
This increases the minimum CLTV delta allowed for invoice creation to provide more headroom above DefaultFinalCltvRejectDelta (19 blocks). The previous value of 18 was below the reject threshold, which could allow users to create invoices with CLTV deltas that would be rejected when receiving payments.
This commit is contained in:
1 parent
4aef4d00ac
commit
4bce4ebe03
1 file changed
+2
-2
+2
-2
@@ -54,8 +54,8 @@ const (
|
||||
// creating incompatibilities during the upgrade process. For some time
|
||||
// LND has used an explicit default final CLTV delta of 40 blocks for
|
||||
// bitcoin, though we now clamp the lower end of this
|
||||
// range for user-chosen deltas to 18 blocks to be conservative.
|
||||
MinCLTVDelta = 18
|
||||
// range for user-chosen deltas to 24 blocks to be conservative.
|
||||
MinCLTVDelta = 24
|
||||
|
||||
// MaxCLTVDelta is the maximum CLTV value accepted by LND for all
|
||||
// timelock deltas.
|
||||
|
||||
Reference in new issue
Block a user