mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
refactor(consensus, evm): move post-execution validation to consensus (#8321)
This commit is contained in:
@ -240,9 +240,11 @@ where
|
||||
// Execute the block
|
||||
let execute_start = Instant::now();
|
||||
|
||||
executor.execute_one((&block, td).into()).map_err(|error| StageError::Block {
|
||||
block: Box::new(block.header.clone().seal_slow()),
|
||||
error: BlockErrorKind::Execution(error),
|
||||
executor.execute_and_verify_one((&block, td).into()).map_err(|error| {
|
||||
StageError::Block {
|
||||
block: Box::new(block.header.clone().seal_slow()),
|
||||
error: BlockErrorKind::Execution(error),
|
||||
}
|
||||
})?;
|
||||
execution_duration += execute_start.elapsed();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user