mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
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).
This commit is contained in:
parent
4bab9c8393
commit
10480f009e
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue