Skip to content

Commit

Permalink
chore: do not clone already recovered block
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected committed Jan 23, 2025
1 parent 05b4205 commit 6d96be3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/engine/tree/src/tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2375,10 +2375,7 @@ where
debug!(target: "engine::tree", ?root_elapsed, block=?sealed_block.num_hash(), "Calculated state root");

let executed: ExecutedBlock<N> = ExecutedBlock {
recovered_block: Arc::new(RecoveredBlock::new_sealed(
sealed_block.as_ref().clone(),
block.senders().to_vec(),
)),
recovered_block: Arc::new(block),
execution_output: Arc::new(ExecutionOutcome::from((output, block_number))),
hashed_state: Arc::new(hashed_state),
trie: Arc::new(trie_output),
Expand Down

0 comments on commit 6d96be3

Please sign in to comment.