From: Matt Corallo Date: Thu, 11 Apr 2024 15:20:08 +0000 (+0000) Subject: Log pending in-flight updates when we are missing a monitor X-Git-Tag: v0.0.123-rc1~8^2~1 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=10480f009e6e57cd409916ea08ac679b0953e4d5;p=rust-lightning Log pending in-flight updates when we are missing a monitor If we are missing a `ChannelMonitor` for which the `ChannelManager` has pending updates, it may be useful to print what the updates we have actually are, at least useful in identifying the bug(s). --- diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 3dbbc9784..27ab6ff09 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -10680,6 +10680,7 @@ where log_error!(logger, " client applications must ensure that ChannelMonitor data is always available and the latest to avoid funds loss!"); log_error!(logger, " Without the latest ChannelMonitor we cannot continue without risking funds."); log_error!(logger, " Please ensure the chain::Watch API requirements are met and file a bug report at https://github.com/lightningdevkit/rust-lightning"); + log_error!(logger, " Pending in-flight updates are: {:?}", chan_in_flight_updates); return Err(DecodeError::InvalidValue); } }