feat: Genericise stateless_validation API so that it is not fixed to Eth types (#16328)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
kevaundray
2025-05-21 16:36:31 +01:00
committed by GitHub
parent 73fd146267
commit 3bf1110403
4 changed files with 25 additions and 15 deletions

View File

@@ -12,7 +12,7 @@ use reth_db_common::init::{insert_genesis_hashes, insert_genesis_history, insert
use reth_ethereum_consensus::{validate_block_post_execution, EthBeaconConsensus};
use reth_ethereum_primitives::Block;
use reth_evm::{execute::Executor, ConfigureEvm};
use reth_evm_ethereum::execute::EthExecutorProvider;
use reth_evm_ethereum::{execute::EthExecutorProvider, EthEvmConfig};
use reth_primitives_traits::{RecoveredBlock, SealedBlock};
use reth_provider::{
test_utils::create_test_provider_factory_with_chain_spec, BlockWriter, DatabaseProviderFactory,
@@ -319,8 +319,13 @@ fn run_case(case: &BlockchainTest) -> Result<(), Error> {
// Now validate using the stateless client if everything else passes
for (block, execution_witness) in program_inputs {
stateless_validation(block.into_block(), execution_witness, chain_spec.clone())
.expect("stateless validation failed");
stateless_validation(
block.into_block(),
execution_witness,
chain_spec.clone(),
EthEvmConfig::new(chain_spec.clone()),
)
.expect("stateless validation failed");
}
Ok(())