diff --git a/lightningd/pay.c b/lightningd/pay.c index 760744d32..f62adda56 100644 --- a/lightningd/pay.c +++ b/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) {