mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: switch to composable executor for Ethereum (#11838)
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user