pub fn build_network<Block, Net, TxPool, IQ, Client>(
params: BuildNetworkParams<'_, Block, Net, TxPool, IQ, Client>,
) -> Result<(Arc<dyn NetworkService>, TracingUnboundedSender<Request<Block>>, TransactionsHandlerController<<Block as BlockT>::Hash>, Arc<SyncingService<Block>>, Option<BitswapHandle>), Error>where
Block: BlockT,
Client: ClientForService<Block> + Chain<Block>,
TxPool: TransactionPool<Block = Block, Hash = <Block as BlockT>::Hash> + ?Sized + 'static,
IQ: ImportQueue<Block> + 'static,
Net: NetworkBackend<Block, <Block as BlockT>::Hash>,Expand description
Build the network service, the network status sinks and an RPC sender.