feat: EvmEnvConfig trait (#6051)

This commit is contained in:
Dan Cline
2024-01-25 17:40:12 -05:00
committed by GitHub
parent abe3358b36
commit acccf1441e
63 changed files with 1003 additions and 391 deletions

View File

@ -21,6 +21,7 @@ reth-provider.workspace = true
reth-stages.workspace = true
reth-interfaces.workspace = true
reth-revm.workspace = true
reth-node-builder.workspace = true
alloy-rlp.workspace = true
tokio = "1.28.1"

View File

@ -6,6 +6,7 @@ use crate::{
};
use alloy_rlp::Decodable;
use reth_db::test_utils::create_test_rw_db;
use reth_node_builder::EthEvmConfig;
use reth_primitives::{BlockBody, SealedBlock};
use reth_provider::{BlockWriter, HashingWriter, ProviderFactory};
use reth_stages::{stages::ExecutionStage, ExecInput, Stage};
@ -108,6 +109,7 @@ impl Case for BlockchainTestCase {
// network.
let _ = ExecutionStage::new_with_factory(reth_revm::EvmProcessorFactory::new(
Arc::new(case.network.clone().into()),
EthEvmConfig::default(),
))
.execute(
&provider,