chore: do not clone already recovered block (#13944)

This commit is contained in:
Dan Cline
2025-01-23 10:56:24 -05:00
committed by GitHub
parent cc8558fa11
commit 5a40c68c73

View File

@ -2375,10 +2375,7 @@ where
debug!(target: "engine::tree", ?root_elapsed, block=?sealed_block.num_hash(), "Calculated state root"); debug!(target: "engine::tree", ?root_elapsed, block=?sealed_block.num_hash(), "Calculated state root");
let executed: ExecutedBlock<N> = ExecutedBlock { let executed: ExecutedBlock<N> = ExecutedBlock {
recovered_block: Arc::new(RecoveredBlock::new_sealed( recovered_block: Arc::new(block),
sealed_block.as_ref().clone(),
block.senders().to_vec(),
)),
execution_output: Arc::new(ExecutionOutcome::from((output, block_number))), execution_output: Arc::new(ExecutionOutcome::from((output, block_number))),
hashed_state: Arc::new(hashed_state), hashed_state: Arc::new(hashed_state),
trie: Arc::new(trie_output), trie: Arc::new(trie_output),