Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Jan 23, 2025
1 parent 8e0666a commit 015a0fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions crates/chain-state/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ impl<N: NodePrimitives> TestBlockBuilder<N> {
fork
}

/// Gets an [`ExecutedBlock`] with [`BlockNumber`], [`Receipts`] and parent hash.
/// Gets an [`ExecutedBlockWithTrieUpdates`] with [`BlockNumber`], [`Receipts`] and parent hash.
fn get_executed_block(
&mut self,
block_number: BlockNumber,
Expand All @@ -227,7 +227,7 @@ impl<N: NodePrimitives> TestBlockBuilder<N> {
)
}

/// Generates an [`ExecutedBlock`] that includes the given [`Receipts`].
/// Generates an [`ExecutedBlockWithTrieUpdates`] that includes the given [`Receipts`].
pub fn get_executed_block_with_receipts(
&mut self,
receipts: Receipts,
Expand All @@ -237,7 +237,7 @@ impl<N: NodePrimitives> TestBlockBuilder<N> {
self.get_executed_block(number, receipts, parent_hash)
}

/// Generates an [`ExecutedBlock`] with the given [`BlockNumber`].
/// Generates an [`ExecutedBlockWithTrieUpdates`] with the given [`BlockNumber`].
pub fn get_executed_block_with_number(
&mut self,
block_number: BlockNumber,
Expand Down
4 changes: 2 additions & 2 deletions crates/engine/tree/src/tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl<N: NodePrimitives> TreeState<N> {
self.blocks_by_hash.len()
}

/// Returns the [`ExecutedBlock`] by hash.
/// Returns the [`ExecutedBlockWithTrieUpdates`] by hash.
fn executed_block_by_hash(&self, hash: B256) -> Option<&ExecutedBlockWithTrieUpdates<N>> {
self.blocks_by_hash.get(&hash)
}
Expand Down Expand Up @@ -2048,7 +2048,7 @@ where
// Try reinserting the reorged canonical chain. This is only possible if we have
// `persisted_trie_updatess` for those blocks.
let old = old
.into_iter()
.iter()
.filter_map(|block| {
let (_, trie) = self
.state
Expand Down

0 comments on commit 015a0fb

Please sign in to comment.