From d75d68cdde64629c3853fcfabb90d15e39814625 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 10 Aug 2023 11:29:44 +0930 Subject: [PATCH] renepay: grab update from WIRE_TEMPORARY_CHANNEL_FAILURE if present. It's not required, but it should be there so we might as well use it (though we sometimes don't put one in, esp if it's a private channel). Signed-off-by: Rusty Russell --- plugins/renepay/pay.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/renepay/pay.c b/plugins/renepay/pay.c index e6b77e01f..d5053bf43 100644 --- a/plugins/renepay/pay.c +++ b/plugins/renepay/pay.c @@ -1213,6 +1213,12 @@ static void handle_sendpay_failure_payment(struct pay_flow *flow, return; case WIRE_TEMPORARY_CHANNEL_FAILURE: + /* These also contain a channel_update, but in this case it's simply + * advisory, not necessary. */ + const u8 *update = channel_update_from_onion_error(tmpctx, raw); + if (update) + submit_update(flow, update, errscid); + return; /* These should only come from the final distination. */