sui_core::execution_cache

Function build_execution_cache_from_env

Source
pub fn build_execution_cache_from_env(
    prometheus_registry: &Registry,
    store: &Arc<AuthorityStore>,
) -> ExecutionCacheTraitPointers
Expand description

Should only be used for sui-tool or tests. Nodes must use build_execution_cache which uses the epoch_start_config to prevent cache impl from switching except at epoch boundaries.