pub fn build_network<Block, Net, TxPool, IQ, Client, CBlock, CClient, DomainHeader>(
params: BuildNetworkParams<'_, Block, Net, TxPool, IQ, Client>,
consensus_client: Arc<CClient>,
) -> Result<(Arc<dyn NetworkService>, TracingUnboundedSender<Request<Block>>, TransactionsHandlerController<<Block as BlockT>::Hash>, NetworkStarter, Arc<SyncingService<Block>>, NetworkServiceHandle, Arc<dyn BlockDownloader<Block>>), Error>where
Block: BlockT<Header = DomainHeader>,
CBlock: BlockT,
Client: ProvideRuntimeApi<Block> + HeaderMetadata<Block, Error = Error> + Chain<Block> + BlockBackend<Block> + BlockIdTo<Block, Error = Error> + ProofProvider<Block> + HeaderBackend<Block> + BlockchainEvents<Block> + AuxStore + 'static,
TxPool: TransactionPool<Block = Block, Hash = <Block as BlockT>::Hash> + 'static,
IQ: ImportQueue<Block> + 'static,
Net: NetworkBackend<Block, <Block as BlockT>::Hash>,
CClient: ProvideRuntimeApi<CBlock> + BlockBackend<CBlock> + ProofProvider<CBlock> + HeaderBackend<CBlock> + Send + Sync + 'static,
CClient::Api: DomainsApi<CBlock, DomainHeader>,
DomainHeader: Header,
Expand description
Build the network service, the network status sinks and an RPC sender.