mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +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:
@@ -1213,6 +1213,12 @@ static void handle_sendpay_failure_payment(struct pay_flow *flow,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
case WIRE_TEMPORARY_CHANNEL_FAILURE:
|
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;
|
return;
|
||||||
|
|
||||||
/* These should only come from the final distination. */
|
/* These should only come from the final distination. */
|
||||||
|
|||||||
Reference in New Issue
Block a user