diff --git a/crates/storage/provider/src/providers/mod.rs b/crates/storage/provider/src/providers/mod.rs index be6db2dcad..94deccafde 100644 --- a/crates/storage/provider/src/providers/mod.rs +++ b/crates/storage/provider/src/providers/mod.rs @@ -75,8 +75,6 @@ pub struct BlockchainProvider { tree: Arc, /// Tracks the chain info wrt forkchoice updates chain_info: ChainInfoTracker, - // TODO: replace chain_info with CanonicalInMemoryState. - //canonical_in_memory_state: CanonicalInMemoryState, } impl Clone for BlockchainProvider { @@ -85,8 +83,6 @@ impl Clone for BlockchainProvider { database: self.database.clone(), tree: self.tree.clone(), chain_info: self.chain_info.clone(), - // TODO: add canonical_in_memory_state - // canonical_in_memory_state: self.canonical_in_memory_state.clone(), } } } @@ -97,17 +93,9 @@ impl BlockchainProvider { pub fn with_latest( database: ProviderFactory, tree: Arc, - // TODO: add in_memory_state - // in_memory_state: Arc, latest: SealedHeader, ) -> Self { - Self { - database, - tree, - // TODO: add in_memory_state - // in_memory_state, - chain_info: ChainInfoTracker::new(latest), - } + Self { database, tree, chain_info: ChainInfoTracker::new(latest) } } /// Sets the treeviewer for the provider.