refactor(consensus, evm): move post-execution validation to consensus (#8321)

This commit is contained in:
Alexey Shekhirin
2024-05-22 18:20:14 +01:00
committed by GitHub
parent 90713300bf
commit f45ca74772
52 changed files with 424 additions and 346 deletions

View File

@ -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();