mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: integrate ExecutorProvider (#7798)
This commit is contained in:
@ -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
|
||||
|
||||
@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user