pub async fn setup_engine<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, BlockchainProvider2<NodeTypesWithDBAdapter<N, TmpDB>>>>, TaskManager, Wallet)>where
N: Default + Node<FullNodeTypesAdapter<N, TmpDB, BlockchainProvider2<NodeTypesWithDBAdapter<N, TmpDB>>>> + NodeTypesWithEngine<Primitives = EthPrimitives> + NodeTypesForProvider,
N::ComponentsBuilder: NodeComponentsBuilder<FullNodeTypesAdapter<N, TmpDB, BlockchainProvider2<NodeTypesWithDBAdapter<N, TmpDB>>>, Components: NodeComponents<FullNodeTypesAdapter<N, TmpDB, BlockchainProvider2<NodeTypesWithDBAdapter<N, TmpDB>>>, Network: PeersHandleProvider>>,
N::AddOns: RethRpcAddOns<Adapter<N, BlockchainProvider2<NodeTypesWithDBAdapter<N, TmpDB>>>> + EngineValidatorAddOn<Adapter<N, BlockchainProvider2<NodeTypesWithDBAdapter<N, TmpDB>>>, Validator: EngineValidator<N::Engine, Block = Block>>,
LocalPayloadAttributesBuilder<N::ChainSpec>: PayloadAttributesBuilder<<<N as NodeTypesWithEngine>::Engine as PayloadTypes>::PayloadAttributes>,
Expand description
Creates the initial setup with num_nodes
started and interconnected.