Function cuprate_consensus::context::initialize_blockchain_context

source ยท
pub async fn initialize_blockchain_context<D>(
    cfg: ContextConfig,
    database: D,
) -> Result<BlockChainContextService, ExtendedConsensusError>
where D: Database + Clone + Send + Sync + 'static, D::Future: Send + 'static,
Expand description

Initialize the blockchain context service.

This function will request a lot of data from the database so it may take a while.