pub trait ExecutionCacheReconfigAPI: Send + Sync {
// Required methods
fn insert_genesis_object(&self, object: Object) -> SuiResult;
fn bulk_insert_genesis_objects(&self, objects: &[Object]) -> SuiResult;
fn revert_state_update(&self, digest: &TransactionDigest) -> SuiResult;
fn set_epoch_start_configuration(
&self,
epoch_start_config: &EpochStartConfiguration
) -> SuiResult;
fn update_epoch_flags_metrics(&self, old: &[EpochFlag], new: &[EpochFlag]);
fn clear_state_end_of_epoch(
&self,
execution_guard: &RwLockWriteGuard<'_, EpochId>
);
fn expensive_check_sui_conservation(
&self,
old_epoch_store: &AuthorityPerEpochStore
) -> SuiResult;
fn checkpoint_db(&self, path: &Path) -> SuiResult;
fn maybe_reaccumulate_state_hash(
&self,
cur_epoch_store: &AuthorityPerEpochStore,
new_protocol_version: ProtocolVersion
);
}
Required Methods§
fn insert_genesis_object(&self, object: Object) -> SuiResult
fn bulk_insert_genesis_objects(&self, objects: &[Object]) -> SuiResult
fn revert_state_update(&self, digest: &TransactionDigest) -> SuiResult
fn set_epoch_start_configuration( &self, epoch_start_config: &EpochStartConfiguration ) -> SuiResult
fn update_epoch_flags_metrics(&self, old: &[EpochFlag], new: &[EpochFlag])
fn clear_state_end_of_epoch( &self, execution_guard: &RwLockWriteGuard<'_, EpochId> )
fn expensive_check_sui_conservation( &self, old_epoch_store: &AuthorityPerEpochStore ) -> SuiResult
fn checkpoint_db(&self, path: &Path) -> SuiResult
sourcefn maybe_reaccumulate_state_hash(
&self,
cur_epoch_store: &AuthorityPerEpochStore,
new_protocol_version: ProtocolVersion
)
fn maybe_reaccumulate_state_hash( &self, cur_epoch_store: &AuthorityPerEpochStore, new_protocol_version: ProtocolVersion )
This is a temporary method to be used when we enable simplified_unwrap_then_delete. It re-accumulates state hash for the new epoch if simplified_unwrap_then_delete is enabled.