Skip to content

Commit 10480f0

Browse files
committed
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).
1 parent 4bab9c8 commit 10480f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/ln/channelmanager.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10680,6 +10680,7 @@ where
1068010680
log_error!(logger, " client applications must ensure that ChannelMonitor data is always available and the latest to avoid funds loss!");
1068110681
log_error!(logger, " Without the latest ChannelMonitor we cannot continue without risking funds.");
1068210682
log_error!(logger, " Please ensure the chain::Watch API requirements are met and file a bug report at https://github.com/lightningdevkit/rust-lightning");
10683+
log_error!(logger, " Pending in-flight updates are: {:?}", chan_in_flight_updates);
1068310684
return Err(DecodeError::InvalidValue);
1068410685
}
1068510686
}

0 commit comments

Comments
 (0)