Skip to content

Commit

Permalink
[StateAccumulatorV2] Re-enable on testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
williampsmith committed Jun 27, 2024
1 parent 0249e7f commit 0d46387
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion crates/sui-core/src/authority/epoch_start_configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl EpochFlag {

/// For situations in which there is no config available (e.g. setting up a downloaded snapshot).
pub fn default_for_no_config() -> Vec<Self> {
Self::default_flags_impl(&Default::default(), false)
Self::default_flags_impl(&Default::default(), true)
}

fn default_flags_impl(
Expand Down
12 changes: 4 additions & 8 deletions crates/sui-core/src/state_accumulator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,15 +367,11 @@ impl StateAccumulator {
store: Arc<dyn AccumulatorStore>,
epoch_store: &Arc<AuthorityPerEpochStore>,
) -> Self {
if cfg!(msim) {
if epoch_store.state_accumulator_v2_enabled() {
return StateAccumulator::V2(StateAccumulatorV2::new(store));
} else {
return StateAccumulator::V1(StateAccumulatorV1::new(store));
}
if epoch_store.state_accumulator_v2_enabled() {
return StateAccumulator::V2(StateAccumulatorV2::new(store));
} else {
return StateAccumulator::V1(StateAccumulatorV1::new(store));
}

StateAccumulator::V1(StateAccumulatorV1::new(store))
}

/// Accumulates the effects of a single checkpoint and persists the accumulator.
Expand Down

0 comments on commit 0d46387

Please sign in to comment.