feat: switch to composable executor for Ethereum (#11838)

This commit is contained in:
Federico Gimenez
2024-10-19 19:59:32 +02:00
committed by GitHub
parent d0ac833946
commit cd828c06d9
13 changed files with 316 additions and 1648 deletions

View File

@ -667,7 +667,8 @@ mod tests {
use assert_matches::assert_matches;
use reth_chainspec::ChainSpecBuilder;
use reth_db_api::{models::AccountBeforeTx, transaction::DbTxMut};
use reth_evm_ethereum::execute::EthExecutorProvider;
use reth_evm::execute::BasicBlockExecutorProvider;
use reth_evm_ethereum::execute::EthExecutionStrategyFactory;
use reth_execution_errors::BlockValidationError;
use reth_primitives::{Account, Bytecode, SealedBlock, StorageEntry};
use reth_provider::{
@ -678,10 +679,11 @@ mod tests {
use reth_stages_api::StageUnitCheckpoint;
use std::collections::BTreeMap;
fn stage() -> ExecutionStage<EthExecutorProvider> {
let executor_provider = EthExecutorProvider::ethereum(Arc::new(
fn stage() -> ExecutionStage<BasicBlockExecutorProvider<EthExecutionStrategyFactory>> {
let strategy_factory = EthExecutionStrategyFactory::ethereum(Arc::new(
ChainSpecBuilder::mainnet().berlin_activated().build(),
));
let executor_provider = BasicBlockExecutorProvider::new(strategy_factory);
ExecutionStage::new(
executor_provider,
ExecutionStageThresholds {