Skip to content

Commit b2ce878

Browse files
valentinewallacerustyrussell
authored andcommitted
keysend plugin: make cltv_expiry for keysends slightly more conservative
This makes the min_cltv_expiry_delta equal to Rust-Lightning's, which is the highest minimum we know of. Changelog-Changed: keysend now uses 22 for the final CTLV, making it rust-lightning compatible.
1 parent 76b8eb3 commit b2ce878

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/keysend.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ static struct command_result *json_keysend(struct command *cmd, const char *buf,
163163
p->payment_secret = NULL;
164164
p->amount = *msat;
165165
p->routes = NULL;
166-
p->min_final_cltv_expiry = DEFAULT_FINAL_CLTV_DELTA;
166+
// 22 is the Rust-Lightning default and the highest minimum we know of.
167+
p->min_final_cltv_expiry = 22;
167168
p->features = NULL;
168169
p->invstring = NULL;
169170
p->why = "Initial attempt";

0 commit comments

Comments
 (0)