Skip to content

Commit e1d5921

Browse files
committed
Remove ChainMonitor::sync_persistence_id
1 parent ed2afb6 commit e1d5921

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lightning/src/chain/chainmonitor.rs

-6
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ use crate::ln::ChannelId;
3535
use crate::sign::ecdsa::WriteableEcdsaChannelSigner;
3636
use crate::events;
3737
use crate::events::{Event, EventHandler};
38-
use crate::util::atomic_counter::AtomicCounter;
3938
use crate::util::logger::{Logger, WithContext};
4039
use crate::util::errors::APIError;
4140
use 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

Comments
 (0)