@@ -35,7 +35,6 @@ use crate::ln::ChannelId;
3535use crate :: sign:: ecdsa:: WriteableEcdsaChannelSigner ;
3636use crate :: events;
3737use crate :: events:: { Event , EventHandler } ;
38- use crate :: util:: atomic_counter:: AtomicCounter ;
3938use crate :: util:: logger:: { Logger , WithContext } ;
4039use crate :: util:: errors:: APIError ;
4140use crate :: util:: wakers:: { Future , Notifier } ;
@@ -222,10 +221,6 @@ pub struct ChainMonitor<ChannelSigner: WriteableEcdsaChannelSigner, C: Deref, T:
222221 P :: Target : Persist < ChannelSigner > ,
223222{
224223 monitors : RwLock < HashMap < OutPoint , MonitorHolder < ChannelSigner > > > ,
225- /// When we generate a [`MonitorUpdateId`] for a chain-event monitor persistence, we need a
226- /// unique ID, which we calculate by simply getting the next value from this counter. Note that
227- /// the ID is never persisted so it's ok that they reset on restart.
228- sync_persistence_id : AtomicCounter ,
229224 chain_source : Option < C > ,
230225 broadcaster : T ,
231226 logger : L ,
@@ -354,7 +349,6 @@ where C::Target: chain::Filter,
354349 pub fn new ( chain_source : Option < C > , broadcaster : T , logger : L , feeest : F , persister : P ) -> Self {
355350 Self {
356351 monitors : RwLock :: new ( new_hash_map ( ) ) ,
357- sync_persistence_id : AtomicCounter :: new ( ) ,
358352 chain_source,
359353 broadcaster,
360354 logger,
0 commit comments