From ec02ffa383ed36d9880328e00c036a9b05ce3cf8 Mon Sep 17 00:00:00 2001 From: ziggie Date: Fri, 22 Dec 2023 18:16:07 +0100 Subject: [PATCH] zpay32: Change min_final_cltv_expiry_delta. We adhere to BOLT 02 and use 18 instead of 9. --- zpay32/hophint.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zpay32/hophint.go b/zpay32/hophint.go index 266c95d7d..feb33f9f0 100644 --- a/zpay32/hophint.go +++ b/zpay32/hophint.go @@ -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