pub async fn setup<N>(
num_nodes: usize,
chain_spec: Arc<N::ChainSpec>,
is_dev: bool,
attributes_generator: impl Fn(u64) -> <<N as NodeTypes>::Payload as PayloadTypes>::PayloadBuilderAttributes + Send + Sync + Copy + 'static,
) -> Result<(Vec<NodeHelperType<N>>, TaskManager, Wallet)>where
N: Default + Node<TmpNodeAdapter<N>> + NodeTypesForProvider,
N::ComponentsBuilder: NodeComponentsBuilder<TmpNodeAdapter<N>, Components: NodeComponents<TmpNodeAdapter<N>, Network: PeersHandleProvider>>,
N::AddOns: RethRpcAddOns<Adapter<N>> + EngineValidatorAddOn<Adapter<N>>,
LocalPayloadAttributesBuilder<N::ChainSpec>: PayloadAttributesBuilder<<<N as NodeTypes>::Payload as PayloadTypes>::PayloadAttributes>,
Expand description
Creates the initial setup with num_nodes
started and interconnected.