zpay32: Change min_final_cltv_expiry_delta.

We adhere to BOLT 02 and use 18 instead of 9.
This commit is contained in:
ziggie 2023-12-22 18:16:07 +01:00
parent 4d8fa349ca
commit ec02ffa383
No known key found for this signature in database
GPG Key ID: 1AFF9C4DCED6D666

View File

@ -6,7 +6,10 @@ const (
// DefaultAssumedFinalCLTVDelta is the default value to be used as the
// final CLTV delta for a route if one is unspecified in the payment
// request.
DefaultAssumedFinalCLTVDelta = 9
// We adhere to the recommendation in BOLT 02 for terminal payments.
// See also:
// https://github.com/lightning/bolts/blob/master/02-peer-protocol.md
DefaultAssumedFinalCLTVDelta = 18
)
// HopHint is a routing hint that contains the minimum information of a channel