From: Matt Corallo Date: Fri, 2 Dec 2022 21:12:47 +0000 (+0000) Subject: Correctly handle any `UPDATE` errors to phandom invoices X-Git-Tag: v0.0.113~13^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=refs%2Fheads%2F2022-12-fix-missing-data;p=rust-lightning Correctly handle any `UPDATE` errors to phandom invoices If we try to send any onion error with the `UPDATE` flag in response to a phantom receipt, we should always swap it for something generic that doesn't require a `channel_update` in it. Here we use `temporary_node_failure`. Test provided by Valentine Wallace --- diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index e0a54841e..6e5df1590 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -2222,7 +2222,7 @@ impl ChannelManager ChannelManager