mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: add Consensus to ExecutionStage (#14447)
This commit is contained in:
@ -27,6 +27,7 @@ reth-db-api.workspace = true
|
||||
reth-provider = { workspace = true, features = ["test-utils"] }
|
||||
reth-stages.workspace = true
|
||||
reth-evm-ethereum.workspace = true
|
||||
reth-ethereum-consensus.workspace = true
|
||||
reth-revm = { workspace = true, features = ["std"] }
|
||||
|
||||
revm = { workspace = true, features = ["secp256k1", "blst", "c-kzg"] }
|
||||
|
||||
@ -7,6 +7,7 @@ use crate::{
|
||||
use alloy_rlp::Decodable;
|
||||
use rayon::iter::{ParallelBridge, ParallelIterator};
|
||||
use reth_chainspec::ChainSpec;
|
||||
use reth_ethereum_consensus::EthBeaconConsensus;
|
||||
use reth_primitives::{BlockBody, SealedBlock, StaticFileSegment};
|
||||
use reth_provider::{
|
||||
providers::StaticFileWriter, test_utils::create_test_provider_factory_with_chain_spec,
|
||||
@ -126,7 +127,8 @@ impl Case for BlockchainTestCase {
|
||||
// Execute the execution stage using the EVM processor factory for the test case
|
||||
// network.
|
||||
let _ = ExecutionStage::new_with_executor(
|
||||
reth_evm_ethereum::execute::EthExecutorProvider::ethereum(chain_spec),
|
||||
reth_evm_ethereum::execute::EthExecutorProvider::ethereum(chain_spec.clone()),
|
||||
Arc::new(EthBeaconConsensus::new(chain_spec)),
|
||||
)
|
||||
.execute(
|
||||
&provider,
|
||||
|
||||
Reference in New Issue
Block a user