mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-27 08:08:15 -05:00
feat: add basic engine2 exec and root perf logs (#10188)
This commit is contained in:
@@ -1706,7 +1706,11 @@ where
|
||||
let block_hash = block.hash();
|
||||
let sealed_block = Arc::new(block.block.clone());
|
||||
let block = block.unseal();
|
||||
|
||||
let exec_time = Instant::now();
|
||||
let output = executor.execute((&block, U256::MAX).into())?;
|
||||
debug!(target: "engine", elapsed=?exec_time.elapsed(), ?block_number, "Executed block");
|
||||
|
||||
self.consensus.validate_block_post_execution(
|
||||
&block,
|
||||
PostExecutionInput::new(&output.receipts, &output.requests),
|
||||
@@ -1714,6 +1718,7 @@ where
|
||||
|
||||
let hashed_state = HashedPostState::from_bundle_state(&output.state.state);
|
||||
|
||||
let root_time = Instant::now();
|
||||
let (state_root, trie_output) =
|
||||
state_provider.hashed_state_root_with_updates(hashed_state.clone())?;
|
||||
if state_root != block.state_root {
|
||||
@@ -1723,6 +1728,8 @@ where
|
||||
.into())
|
||||
}
|
||||
|
||||
debug!(target: "engine", elapsed=?root_time.elapsed(), ?block_number, "Calculated state root");
|
||||
|
||||
let executed = ExecutedBlock {
|
||||
block: sealed_block.clone(),
|
||||
senders: Arc::new(block.senders),
|
||||
|
||||
Reference in New Issue
Block a user