reth_e2e_test_utils

Function setup

Source
pub async fn setup<N>(
    num_nodes: usize,
    chain_spec: Arc<N::ChainSpec>,
    is_dev: bool,
    attributes_generator: impl Fn(u64) -> <<N as NodeTypesWithEngine>::Engine as PayloadTypes>::PayloadBuilderAttributes + Copy + 'static,
) -> Result<(Vec<NodeHelperType<N>>, TaskManager, Wallet)>
where N: Default + Node<FullNodeTypesAdapter<N, TmpDB, BlockchainProvider<NodeTypesWithDBAdapter<N, TmpDB>>>> + NodeTypesForTree + NodeTypesWithEngine, N::ComponentsBuilder: NodeComponentsBuilder<FullNodeTypesAdapter<N, TmpDB, BlockchainProvider<NodeTypesWithDBAdapter<N, TmpDB>>>, Components: NodeComponents<FullNodeTypesAdapter<N, TmpDB, BlockchainProvider<NodeTypesWithDBAdapter<N, TmpDB>>>, Network: PeersHandleProvider>>, N::AddOns: RethRpcAddOns<Adapter<N>>,
Expand description

Creates the initial setup with num_nodes started and interconnected.