cuprate_consensus

Function initialize_verifier

Source
pub fn initialize_verifier<D, Ctx>(
    database: D,
    ctx_svc: Ctx,
) -> (BlockVerifierService<Ctx, TxVerifierService<D>, D>, TxVerifierService<D>)
where D: Database + Clone + Send + Sync + 'static, D::Future: Send + 'static, Ctx: Service<BlockChainContextRequest, Response = BlockChainContextResponse, Error = BoxError> + Clone + Send + Sync + 'static, Ctx::Future: Send + 'static,
Expand description

Initialize the 2 verifier tower::Services (block and transaction).