From 3147e0eb79f4b354bb176986d5f521f0f9da6bb2 Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Thu, 20 May 2021 11:45:05 -0400 Subject: [PATCH] keysend plugin: make cltv_expiry for keysends slightly more conservative --- plugins/keysend.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/keysend.c b/plugins/keysend.c index 97196a3a5c59..c05fe8649c9f 100644 --- a/plugins/keysend.c +++ b/plugins/keysend.c @@ -163,7 +163,8 @@ static struct command_result *json_keysend(struct command *cmd, const char *buf, p->payment_secret = NULL; p->amount = *msat; p->routes = NULL; - p->min_final_cltv_expiry = DEFAULT_FINAL_CLTV_DELTA; + // Use a slightly more conservative expiry than the default. + p->min_final_cltv_expiry = DEFAULT_FINAL_CLTV_DELTA + 3; p->features = NULL; p->invstring = NULL; p->why = "Initial attempt";