feat: integrate ExecutorProvider (#7798)

This commit is contained in:
Matthias Seitz
2024-05-03 13:39:46 +02:00
committed by GitHub
parent ec45ae679f
commit 067b0ff420
74 changed files with 1087 additions and 2027 deletions

View File

@ -22,12 +22,12 @@ reth-provider = { workspace = true, features = ["test-utils"] }
reth-stages.workspace = true
reth-interfaces.workspace = true
reth-revm.workspace = true
reth-node-ethereum.workspace = true
reth-evm-ethereum.workspace = true
alloy-rlp.workspace = true
tokio = "1.28.1"
tokio.workspace = true
walkdir = "2.3.3"
serde = "1.0.163"
serde.workspace = true
serde_json.workspace = true
thiserror.workspace = true
rayon.workspace = true

View File

@ -7,7 +7,6 @@ use crate::{
use alloy_rlp::Decodable;
use rayon::iter::{ParallelBridge, ParallelIterator};
use reth_db::test_utils::{create_test_rw_db, create_test_static_files_dir};
use reth_node_ethereum::EthEvmConfig;
use reth_primitives::{BlockBody, SealedBlock, StaticFileSegment};
use reth_provider::{providers::StaticFileWriter, HashingWriter, ProviderFactory};
use reth_stages::{stages::ExecutionStage, ExecInput, Stage};
@ -136,10 +135,11 @@ impl Case for BlockchainTestCase {
// Execute the execution stage using the EVM processor factory for the test case
// network.
let _ = ExecutionStage::new_with_factory(reth_revm::EvmProcessorFactory::new(
Arc::new(case.network.clone().into()),
EthEvmConfig::default(),
))
let _ = ExecutionStage::new_with_executor(
reth_evm_ethereum::execute::EthExecutorProvider::ethereum(Arc::new(
case.network.clone().into(),
)),
)
.execute(
&provider,
ExecInput { target: last_block.as_ref().map(|b| b.number), checkpoint: None },