From d35bf90009785b82cc297990d3219750877b9ad7 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 27 Apr 2017 13:48:58 +0930 Subject: [PATCH] lightningd/pay: Set outgoing_cltv_value for onion. Signed-off-by: Rusty Russell --- lightningd/pay.c | 1 + 1 file changed, 1 insertion(+) 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) {