Function sc_mixnet::run

source ยท
pub async fn run<B, C, S, P>(
    config: Config,
    api_backend: ApiBackend,
    client: Arc<C>,
    sync: Arc<S>,
    network: Arc<dyn NetworkService>,
    protocol_name: ProtocolName,
    transaction_pool: Arc<P>,
    keystore: Option<KeystorePtr>,
    notification_service: Box<dyn NotificationService>,
)
where B: Block, C: BlockchainEvents<B> + ProvideRuntimeApi<B> + HeaderBackend<B>, C::Api: MixnetApi<B>, S: SyncOracle, P: TransactionPool<Block = B> + LocalTransactionPool<Block = B> + 'static,
Expand description

Run the mixnet service. If keystore is None, the service will not attempt to register the local node as a mixnode, even if config.register is true.