mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
lightningd/pay: Set outgoing_cltv_value for onion.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
961987b046
commit
d35bf90009
@ -255,6 +255,7 @@ static void json_sendpay(struct command *cmd,
|
||||
/* Add payload for final hop */
|
||||
tal_resize(&hoppayloads, n_hops);
|
||||
memset(&hoppayloads[n_hops-1], 0, sizeof(struct hoppayload));
|
||||
hoppayloads[n_hops-1].outgoing_cltv_value = base_expiry + delay;
|
||||
|
||||
pc = find_pay_command(ld, &rhash);
|
||||
if (pc) {
|
||||
|
Loading…
Reference in New Issue
Block a user