lightningd/pay: Set outgoing_cltv_value for onion.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2017-04-27 13:48:58 +09:30 committed by Christian Decker
parent 961987b046
commit d35bf90009

View File

@ -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) {