From 6919a1e6c862870f1e5c16bef1c86d05e0674ee1 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 10 Apr 2026 15:54:12 +0930 Subject: [PATCH] keysend: increase assumed final_cltv_expiry to 42 (to match LDK). Reported-by: https://github.com/tnull Fixes: https://github.com/ElementsProject/lightning/issues/9034 Signed-off-by: Rusty Russell Changelog-Fixed: JSON-RPC: `keysend` now assumes 42, not 22 for final CLTV (should fix sending to LDK nodes) --- plugins/keysend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/keysend.c b/plugins/keysend.c index 6c02dc8fa353..92246bec65b9 100644 --- a/plugins/keysend.c +++ b/plugins/keysend.c @@ -226,8 +226,8 @@ static struct command_result *json_keysend(struct command *cmd, const char *buf, * caller to provide keysend secret */ p->our_amount = p->final_amount = *msat; p->routes = tal_steal(p, hints); - // 22 is the Rust-Lightning default and the highest minimum we know of. - p->min_final_cltv_expiry = 22; + // 42 is the Rust-Lightning default and the highest minimum we know of. + p->min_final_cltv_expiry = 42; p->features = NULL; p->invstring = NULL; /* Don't try to use invstring to hand to sendonion! */