cuprated::blockchain::syncer

Function check_update_blockchain_context

Source
async fn check_update_blockchain_context<C>(
    context_svc: C,
    old_context: &mut BlockChainContext,
) -> Result<(), BoxError>
where C: Service<BlockChainContextRequest, Response = BlockChainContextResponse, Error = BoxError>, C::Future: Send + 'static,
Expand description

Checks if we should update the given BlockChainContext and updates it if needed.