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:
Olaoluwa Osuntokun committed 2026-01-15 16:22:26 -08:00
1 parent 4aef4d00ac
commit 4bce4ebe03
1 file changed
+2 -2
+2 -2
View File
@@ -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.