File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -5633,8 +5633,18 @@ where
5633
5633
} else { false }
5634
5634
},
5635
5635
// or the channel we'd unblock is already closed,
5636
- BackgroundEvent::ClosedMonitorUpdateRegeneratedOnStartup((funding_txo, ..))
5637
- => *funding_txo == next_channel_outpoint,
5636
+ BackgroundEvent::ClosedMonitorUpdateRegeneratedOnStartup(
5637
+ (funding_txo, monitor_update)
5638
+ ) => {
5639
+ if *funding_txo == next_channel_outpoint {
5640
+ assert_eq!(monitor_update.updates.len(), 1);
5641
+ assert!(matches!(
5642
+ monitor_update.updates[0],
5643
+ ChannelMonitorUpdateStep::ChannelForceClosed { .. }
5644
+ ));
5645
+ true
5646
+ } else { false }
5647
+ },
5638
5648
// or the monitor update has completed and will unblock
5639
5649
// immediately once we get going.
5640
5650
BackgroundEvent::MonitorUpdatesComplete {
You can’t perform that action at this time.
0 commit comments