feat: default impl for some BlockExecutionStrategy methods (#11941)

This commit is contained in:
Federico Gimenez
2024-10-21 20:47:50 +02:00
committed by GitHub
parent 3f2a41bd3f
commit d9d184d498
4 changed files with 28 additions and 23 deletions

View File

@ -21,7 +21,7 @@ use reth_evm::{
ConfigureEvm,
};
use reth_primitives::{BlockWithSenders, Receipt};
use reth_revm::db::{states::bundle_state::BundleRetention, BundleState, State};
use reth_revm::db::State;
use revm_primitives::{
db::{Database, DatabaseCommit},
BlockEnv, CfgEnvWithHandlerCfg, EnvWithHandlerCfg, ResultAndState, U256,
@ -264,11 +264,6 @@ where
self.system_caller.with_state_hook(hook);
}
fn finish(&mut self) -> BundleState {
self.state.merge_transitions(BundleRetention::Reverts);
self.state.take_bundle()
}
fn validate_block_post_execution(
&self,
block: &BlockWithSenders,