Browse Source

lightningd/pay: Set outgoing_cltv_value for onion.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 8 years ago
committed by Christian Decker
parent
commit
d35bf90009
  1. 1
      lightningd/pay.c

1
lightningd/pay.c

@ -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…
Cancel
Save