Function sc_service::build_network [−][src]
pub fn build_network<TBl, TExPool, TImpQu, TCl>(
params: BuildNetworkParams<'_, TBl, TExPool, TImpQu, TCl>
) -> Result<(Arc<NetworkService<TBl, <TBl as BlockT>::Hash>>, TracingUnboundedSender<Request<TBl>>, NetworkStarter), Error> where
TBl: BlockT,
TCl: ProvideRuntimeApi<TBl> + HeaderMetadata<TBl, Error = Error> + Chain<TBl> + BlockBackend<TBl> + BlockIdTo<TBl, Error = Error> + ProofProvider<TBl> + HeaderBackend<TBl> + BlockchainEvents<TBl> + 'static,
TExPool: MaintainedTransactionPool<Block = TBl, Hash = <TBl as BlockT>::Hash> + 'static,
TImpQu: ImportQueue<TBl> + 'static,
Expand description
Build the network service, the network status sinks and an RPC sender.