Function sc_service::build_network
source ยท 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>, NetworkStarter, Arc<SyncingService<Block>>), Error>where
Block: BlockT,
Client: ProvideRuntimeApi<Block> + HeaderMetadata<Block, Error = Error> + Chain<Block> + BlockBackend<Block> + BlockIdTo<Block, Error = Error> + ProofProvider<Block> + HeaderBackend<Block> + BlockchainEvents<Block> + 'static,
TxPool: TransactionPool<Block = Block, Hash = <Block as BlockT>::Hash> + '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.