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
  • Loading branch information
valentinewallace committed May 20, 2021
1 parent 0d68feb commit f073422
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;
// Use a slightly more conservative expiry than the default.
p->min_final_cltv_expiry = DEFAULT_FINAL_CLTV_DELTA + 4;
p->features = NULL;
p->invstring = NULL;
p->why = "Initial attempt";
Expand Down

0 comments on commit f073422

Please sign in to comment.