Skip to content

Commit b57edd2

Browse files
rustyrussellsangbida
authored andcommitted
keysend: increase assumed final_cltv_expiry to 42 (to match LDK).
Reported-by: https://github.com/tnull Fixes: #9034 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Fixed: JSON-RPC: `keysend` now assumes 42, not 22 for final CLTV (should fix sending to LDK nodes)
1 parent 4831ec2 commit b57edd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/keysend.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ static struct command_result *json_keysend(struct command *cmd, const char *buf,
226226
* caller to provide keysend secret */
227227
p->our_amount = p->final_amount = *msat;
228228
p->routes = tal_steal(p, hints);
229-
// 22 is the Rust-Lightning default and the highest minimum we know of.
230-
p->min_final_cltv_expiry = 22;
229+
// 42 is the Rust-Lightning default and the highest minimum we know of.
230+
p->min_final_cltv_expiry = 42;
231231
p->features = NULL;
232232
p->invstring = NULL;
233233
/* Don't try to use invstring to hand to sendonion! */

0 commit comments

Comments
 (0)