mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
refactor: move EngineValidator setup to RpcAddOns (#11850)
This commit is contained in:
@ -31,7 +31,6 @@ reth-primitives.workspace = true
|
||||
reth-provider = { workspace = true, features = ["test-utils"] }
|
||||
reth-tasks.workspace = true
|
||||
reth-transaction-pool = { workspace = true, features = ["test-utils"] }
|
||||
reth-ethereum-engine-primitives.workspace = true
|
||||
|
||||
## async
|
||||
futures-util.workspace = true
|
||||
|
||||
@ -24,7 +24,6 @@ use reth_db::{
|
||||
DatabaseEnv,
|
||||
};
|
||||
use reth_db_common::init::init_genesis;
|
||||
use reth_ethereum_engine_primitives::EthereumEngineValidator;
|
||||
use reth_evm::test_utils::MockExecutorProvider;
|
||||
use reth_execution_types::Chain;
|
||||
use reth_exex::{ExExContext, ExExEvent, ExExNotification, ExExNotifications, Wal};
|
||||
@ -41,10 +40,7 @@ use reth_node_builder::{
|
||||
};
|
||||
use reth_node_core::node_config::NodeConfig;
|
||||
use reth_node_ethereum::{
|
||||
node::{
|
||||
EthereumAddOns, EthereumEngineValidatorBuilder, EthereumNetworkBuilder,
|
||||
EthereumPayloadBuilder,
|
||||
},
|
||||
node::{EthereumAddOns, EthereumNetworkBuilder, EthereumPayloadBuilder},
|
||||
EthEngineTypes, EthEvmConfig,
|
||||
};
|
||||
use reth_payload_builder::noop::NoopPayloadBuilderService;
|
||||
@ -140,7 +136,6 @@ where
|
||||
EthereumNetworkBuilder,
|
||||
TestExecutorBuilder,
|
||||
TestConsensusBuilder,
|
||||
EthereumEngineValidatorBuilder,
|
||||
>;
|
||||
type AddOns = EthereumAddOns<
|
||||
NodeAdapter<N, <Self::ComponentsBuilder as NodeComponentsBuilder<N>>::Components>,
|
||||
@ -154,7 +149,6 @@ where
|
||||
.network(EthereumNetworkBuilder::default())
|
||||
.executor(TestExecutorBuilder::default())
|
||||
.consensus(TestConsensusBuilder::default())
|
||||
.engine_validator(EthereumEngineValidatorBuilder::default())
|
||||
}
|
||||
|
||||
fn add_ons(&self) -> Self::AddOns {
|
||||
@ -284,8 +278,6 @@ pub async fn test_exex_context_with_chain_spec(
|
||||
let tasks = TaskManager::current();
|
||||
let task_executor = tasks.executor();
|
||||
|
||||
let engine_validator = EthereumEngineValidator::new(chain_spec.clone());
|
||||
|
||||
let components = NodeAdapter::<FullNodeTypesAdapter<NodeTypesWithDBAdapter<TestNode, _>, _>, _> {
|
||||
components: Components {
|
||||
transaction_pool,
|
||||
@ -294,7 +286,6 @@ pub async fn test_exex_context_with_chain_spec(
|
||||
consensus,
|
||||
network,
|
||||
payload_builder,
|
||||
engine_validator,
|
||||
},
|
||||
task_executor,
|
||||
provider,
|
||||
|
||||
Reference in New Issue
Block a user