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 <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2023-08-10 11:29:44 +09:30
parent 15c30f4018
commit d75d68cdde

View file

@ -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. */