Function sc_service::build_network

source ·
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>>, TransactionsHandlerController<<TBl as BlockT>::Hash>, NetworkStarter, Arc<SyncingService<TBl>>), 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: TransactionPool<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.