mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 11:59:16 +01:00
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:
parent
15c30f4018
commit
d75d68cdde
1 changed files with 6 additions and 0 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue