cuprate_consensus_context

Function initialize_blockchain_context

Source
pub async fn initialize_blockchain_context<D>(
    cfg: ContextConfig,
    database: D,
) -> Result<BlockChainContextService, ContextCacheError>
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.