referrerpolicy=no-referrer-when-downgrade

Function cumulus_client_service::build_network

source ·
pub async fn build_network<'a, Block, Client, RCInterface, IQ, Network>(
    __arg0: BuildNetworkParams<'a, Block, Client, Network, RCInterface, IQ>,
) -> Result<(Arc<dyn NetworkService>, TracingUnboundedSender<Request<Block>>, TransactionsHandlerController<Block::Hash>, Arc<SyncingService<Block>>)>
where Block: BlockT, Client: UsageProvider<Block> + HeaderBackend<Block> + Chain<Block> + Send + Sync + BlockBackend<Block> + BlockchainEvents<Block> + ProvideRuntimeApi<Block> + HeaderMetadata<Block, Error = Error> + BlockIdTo<Block, Error = Error> + ProofProvider<Block> + 'static, Client::Api: CollectCollationInfo<Block> + TaggedTransactionQueue<Block>, for<'b> &'b Client: BlockImport<Block>, RCInterface: RelayChainInterface + Clone + 'static, IQ: ImportQueue<Block> + 'static, Network: NetworkBackend<Block, <Block as BlockT>::Hash>,
Expand description

Build the network service, the network status sinks and an RPC sender.