From 0c7d04bd9866694d9d9d4154ef5c61d7dc9f1b4d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 31 Aug 2020 13:05:42 +0930 Subject: [PATCH] libplugin-pay: fix default CLTV. This was changed recently, but without a bolt quote, we didn't find this. Signed-off-by: Rusty Russell --- plugins/libplugin-pay.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/libplugin-pay.c b/plugins/libplugin-pay.c index e1835eefd..5fee19ec9 100644 --- a/plugins/libplugin-pay.c +++ b/plugins/libplugin-pay.c @@ -7,7 +7,12 @@ #include #include -#define DEFAULT_FINAL_CLTV_DELTA 9 +/* BOLT #11: + * * `c` (24): `data_length` variable. + * `min_final_cltv_expiry` to use for the last HTLC in the route. + * Default is 18 if not specified. + */ +#define DEFAULT_FINAL_CLTV_DELTA 18 struct payment *payment_new(tal_t *ctx, struct command *cmd, struct payment *parent,