Skip to content

Commit e410449

Browse files
committed
Remove unused ClosedMonitorUpdateRegeneratedOnStartup variant
1 parent c215dc4 commit e410449

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,14 +1062,6 @@ impl ClaimablePayments {
10621062
/// [`ChannelMonitorUpdate`]s are applied.
10631063
#[derive(Debug)]
10641064
enum BackgroundEvent {
1065-
/// Handle a ChannelMonitorUpdate which closes the channel or for an already-closed channel.
1066-
/// This is only separated from [`Self::MonitorUpdateRegeneratedOnStartup`] as for truly
1067-
/// ancient [`ChannelMonitor`]s that haven't seen an update since LDK 0.0.118 we may not have
1068-
/// the counterparty node ID available.
1069-
///
1070-
/// Note that any such events are lost on shutdown, so in general they must be updates which
1071-
/// are regenerated on startup.
1072-
ClosedMonitorUpdateRegeneratedOnStartup((OutPoint, ChannelId, ChannelMonitorUpdate)),
10731065
/// Handle a ChannelMonitorUpdate which may or may not close the channel and may unblock the
10741066
/// channel to continue normal operation.
10751067
///
@@ -6389,11 +6381,6 @@ where
63896381

63906382
for event in background_events.drain(..) {
63916383
match event {
6392-
BackgroundEvent::ClosedMonitorUpdateRegeneratedOnStartup((_funding_txo, channel_id, update)) => {
6393-
// The channel has already been closed, so no use bothering to care about the
6394-
// monitor updating completing.
6395-
let _ = self.chain_monitor.update_channel(channel_id, &update);
6396-
},
63976384
BackgroundEvent::MonitorUpdateRegeneratedOnStartup { counterparty_node_id, funding_txo, channel_id, update } => {
63986385
self.apply_post_close_monitor_update(counterparty_node_id, channel_id, funding_txo, update);
63996386
},

0 commit comments

Comments
 (0)