perf(EthBuiltPayload): Arc SealedBlock (#12351)

This commit is contained in:
Hai | RISE
2024-11-07 03:33:49 +07:00
committed by GitHub
parent fe2b02828d
commit 302ed291e4
4 changed files with 18 additions and 13 deletions

View File

@ -439,12 +439,12 @@ where
body: BlockBody { transactions: executed_txs, ommers: vec![], withdrawals },
};
let sealed_block = block.seal_slow();
let sealed_block = Arc::new(block.seal_slow());
debug!(target: "payload_builder", ?sealed_block, "sealed built block");
// create the executed block data
let executed = ExecutedBlock {
block: Arc::new(sealed_block.clone()),
block: sealed_block.clone(),
senders: Arc::new(executed_senders),
execution_output: Arc::new(execution_outcome),
hashed_state: Arc::new(hashed_state),