Skip to content

Commit

Permalink
chore: remove outdated docs (#9827)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jul 26, 2024
1 parent 7475f4f commit cf7698a
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions crates/storage/provider/src/providers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ pub struct BlockchainProvider<DB> {
tree: Arc<dyn TreeViewer>,
/// Tracks the chain info wrt forkchoice updates
chain_info: ChainInfoTracker,
// TODO: replace chain_info with CanonicalInMemoryState.
//canonical_in_memory_state: CanonicalInMemoryState,
}

impl<DB> Clone for BlockchainProvider<DB> {
Expand All @@ -85,8 +83,6 @@ impl<DB> Clone for BlockchainProvider<DB> {
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(),
}
}
}
Expand All @@ -97,17 +93,9 @@ impl<DB> BlockchainProvider<DB> {
pub fn with_latest(
database: ProviderFactory<DB>,
tree: Arc<dyn TreeViewer>,
// TODO: add in_memory_state
// in_memory_state: Arc<dyn InMemoryState>,
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.
Expand Down

0 comments on commit cf7698a

Please sign in to comment.