perf: do not clone recovered block (#14016)

This commit is contained in:
Dan Cline
2025-01-27 13:50:39 -05:00
committed by GitHub
parent afd43db9b8
commit 2e34fe1840

View File

@ -2384,10 +2384,7 @@ where
let executed: ExecutedBlockWithTrieUpdates<N> = ExecutedBlockWithTrieUpdates {
block: 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_num_hash.number))),
hashed_state: Arc::new(hashed_state),
},