pub async fn setup(
num_nodes: usize,
) -> Result<(Vec<NodeTestContext<NodeAdapter<FullNodeTypesAdapter<OpNode, Arc<TempDatabase<DatabaseEnv>>, BlockchainProvider<NodeTypesWithDBAdapter<OpNode, Arc<TempDatabase<DatabaseEnv>>>>>, <<OpNode as Node<FullNodeTypesAdapter<OpNode, Arc<TempDatabase<DatabaseEnv>>, BlockchainProvider<NodeTypesWithDBAdapter<OpNode, Arc<TempDatabase<DatabaseEnv>>>>>>>::ComponentsBuilder as NodeComponentsBuilder<FullNodeTypesAdapter<OpNode, Arc<TempDatabase<DatabaseEnv>>, BlockchainProvider<NodeTypesWithDBAdapter<OpNode, Arc<TempDatabase<DatabaseEnv>>>>>>>::Components>, <OpNode as Node<FullNodeTypesAdapter<OpNode, Arc<TempDatabase<DatabaseEnv>>, BlockchainProvider<NodeTypesWithDBAdapter<OpNode, Arc<TempDatabase<DatabaseEnv>>>>>>>::AddOns>>, TaskManager, Wallet), Report>
Available on crate features
optimism
and test-utils
only.Expand description
Creates the initial setup with num_nodes
of the node config, started and connected.