Skip to content

Commit

Permalink
keysend plugin: make cltv_expiry for keysends slightly more conservative
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
valentinewallace authored and rustyrussell committed Jun 10, 2021
1 parent 76b8eb3 commit b2ce878
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/keysend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
// 22 is the Rust-Lightning default and the highest minimum we know of.
p->min_final_cltv_expiry = 22;
p->features = NULL;
p->invstring = NULL;
p->why = "Initial attempt";
Expand Down

0 comments on commit b2ce878

Please sign in to comment.