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:
@ -298,7 +298,7 @@ impl Command {
|
||||
|
||||
consensus.validate_header_with_total_difficulty(block, U256::MAX)?;
|
||||
consensus.validate_header(block)?;
|
||||
consensus.validate_block(block)?;
|
||||
consensus.validate_block_pre_execution(block)?;
|
||||
|
||||
let senders = block.senders().expect("sender recovery failed");
|
||||
let block_with_senders =
|
||||
|
||||
@ -197,7 +197,7 @@ impl Command {
|
||||
)),
|
||||
PruneModes::none(),
|
||||
);
|
||||
executor.execute_one((&sealed_block.clone().unseal(), td).into())?;
|
||||
executor.execute_and_verify_one((&sealed_block.clone().unseal(), td).into())?;
|
||||
let BatchBlockExecutionOutput { bundle, receipts, first_block } = executor.finalize();
|
||||
BundleStateWithReceipts::new(bundle, receipts, first_block).write_to_storage(
|
||||
provider_rw.tx_ref(),
|
||||
|
||||
Reference in New Issue
Block a user