@@ -35,7 +35,6 @@ use crate::ln::ChannelId;
35
35
use crate :: sign:: ecdsa:: WriteableEcdsaChannelSigner ;
36
36
use crate :: events;
37
37
use crate :: events:: { Event , EventHandler } ;
38
- use crate :: util:: atomic_counter:: AtomicCounter ;
39
38
use crate :: util:: logger:: { Logger , WithContext } ;
40
39
use crate :: util:: errors:: APIError ;
41
40
use crate :: util:: wakers:: { Future , Notifier } ;
@@ -221,10 +220,6 @@ pub struct ChainMonitor<ChannelSigner: WriteableEcdsaChannelSigner, C: Deref, T:
221
220
P :: Target : Persist < ChannelSigner > ,
222
221
{
223
222
monitors : RwLock < HashMap < OutPoint , MonitorHolder < ChannelSigner > > > ,
224
- /// When we generate a monitor update for a chain-event monitor persistence, we need a
225
- /// unique ID, which we calculate by simply getting the next value from this counter. Note that
226
- /// the ID is never persisted so it's ok that they reset on restart.
227
- sync_persistence_id : AtomicCounter ,
228
223
chain_source : Option < C > ,
229
224
broadcaster : T ,
230
225
logger : L ,
@@ -353,7 +348,6 @@ where C::Target: chain::Filter,
353
348
pub fn new ( chain_source : Option < C > , broadcaster : T , logger : L , feeest : F , persister : P ) -> Self {
354
349
Self {
355
350
monitors : RwLock :: new ( new_hash_map ( ) ) ,
356
- sync_persistence_id : AtomicCounter :: new ( ) ,
357
351
chain_source,
358
352
broadcaster,
359
353
logger,
0 commit comments