feat: make NodeConfig generic over ChainSpec (#11039)

This commit is contained in:
Arsenii Kulikov
2024-09-19 19:05:09 +03:00
committed by GitHub
parent 65fb29c773
commit c3d090adf4
16 changed files with 186 additions and 106 deletions

View File

@ -1,6 +1,6 @@
use std::fmt::Debug;
use reth_node_api::{FullNodeComponents, NodeTypesWithEngine};
use reth_node_api::{FullNodeComponents, NodeTypes, NodeTypesWithEngine};
use reth_node_core::node_config::NodeConfig;
use reth_primitives::Head;
use reth_tasks::TaskExecutor;
@ -13,7 +13,7 @@ pub struct ExExContext<Node: FullNodeComponents> {
/// The current head of the blockchain at launch.
pub head: Head,
/// The config of the node
pub config: NodeConfig,
pub config: NodeConfig<<Node::Types as NodeTypes>::ChainSpec>,
/// The loaded node config
pub reth_config: reth_config::Config,
/// Channel used to send [`ExExEvent`]s to the rest of the node.