Function cuprate_consensus::initialize_verifier

source ยท
pub async fn initialize_verifier<D, Ctx>(
    database: D,
    ctx_svc: Ctx,
) -> Result<(BlockVerifierService<Ctx, TxVerifierService<D>, D>, TxVerifierService<D>), ConsensusError>
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).