Merge pull request #8308 from ziggie1984/new_min_cltv_default

zpay32: Change min_final_cltv_expiry_delta.
This commit is contained in:
Yong 2024-01-02 17:19:52 +08:00 committed by GitHub
commit ab8fb2c9c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -170,6 +170,13 @@
be switched off using the new `protocol.no-timestamp-query-option` config
option.
* [Update min_final_cltv_expiry_delta](https://github.com/lightningnetwork/lnd/pull/8308).
This only effects external invoices which do not supply the
min_final_cltv_expiry parameter. LND has NOT allowed the creation of invoices
with a lower min_final_cltv_expiry_delta value than 18 blocks since
LND 0.11.0.
## Testing
* Added fuzz tests for [onion

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