We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2fb98e commit f9c9acfCopy full SHA for f9c9acf
lightning/src/util/persist.rs
@@ -694,6 +694,7 @@ where
694
695
if let chain::ChannelMonitorUpdateStatus::Completed = monitor_update_status {
696
let cleanup_range = if monitor.get_latest_update_id() == CLOSED_CHANNEL_UPDATE_ID {
697
+ // If there is an error while reading old monitor, we skip clean up.
698
maybe_old_monitor.map(|(_, ref old_monitor)| {
699
let start = old_monitor.get_latest_update_id();
700
// We never persist an update with update_id = CLOSED_CHANNEL_UPDATE_ID
0 commit comments