@@ -1064,14 +1064,6 @@ impl ClaimablePayments {
1064
1064
/// [`ChannelMonitorUpdate`]s are applied.
1065
1065
#[derive(Debug)]
1066
1066
enum BackgroundEvent {
1067
- /// Handle a ChannelMonitorUpdate which closes the channel or for an already-closed channel.
1068
- /// This is only separated from [`Self::MonitorUpdateRegeneratedOnStartup`] as for truly
1069
- /// ancient [`ChannelMonitor`]s that haven't seen an update since LDK 0.0.118 we may not have
1070
- /// the counterparty node ID available.
1071
- ///
1072
- /// Note that any such events are lost on shutdown, so in general they must be updates which
1073
- /// are regenerated on startup.
1074
- ClosedMonitorUpdateRegeneratedOnStartup((OutPoint, ChannelId, ChannelMonitorUpdate)),
1075
1067
/// Handle a ChannelMonitorUpdate which may or may not close the channel and may unblock the
1076
1068
/// channel to continue normal operation.
1077
1069
///
@@ -6393,11 +6385,6 @@ where
6393
6385
6394
6386
for event in background_events.drain(..) {
6395
6387
match event {
6396
- BackgroundEvent::ClosedMonitorUpdateRegeneratedOnStartup((_funding_txo, channel_id, update)) => {
6397
- // The channel has already been closed, so no use bothering to care about the
6398
- // monitor updating completing.
6399
- let _ = self.chain_monitor.update_channel(channel_id, &update);
6400
- },
6401
6388
BackgroundEvent::MonitorUpdateRegeneratedOnStartup { counterparty_node_id, funding_txo, channel_id, update } => {
6402
6389
self.apply_post_close_monitor_update(counterparty_node_id, channel_id, funding_txo, update);
6403
6390
},
0 commit comments