feat: ChainSpec associated type (#10292)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Arsenii Kulikov
2024-08-22 20:30:09 +08:00
committed by GitHub
parent a4c30ead7e
commit f2e0bc073a
52 changed files with 254 additions and 116 deletions

View File

@ -111,11 +111,12 @@ pub struct TestNode;
impl NodeTypes for TestNode {
type Primitives = ();
type Engine = EthEngineTypes;
type ChainSpec = ChainSpec;
}
impl<N> Node<N> for TestNode
where
N: FullNodeTypes<Engine = EthEngineTypes>,
N: FullNodeTypes<Engine = EthEngineTypes, ChainSpec = ChainSpec>,
{
type ComponentsBuilder = ComponentsBuilder<
N,