Skip to content

Commit edbb6aa

Browse files
authored
Suppress error if epoch <= 1 (#22046)
1 parent 6a5abad commit edbb6aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/sui-core/src/authority/authority_per_epoch_store.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,9 @@ impl AuthorityPerEpochStore {
12761276
let system_state = match system_state {
12771277
SuiSystemState::V2(system_state) => system_state,
12781278
SuiSystemState::V1(_) => {
1279-
error!("`PerObjectCongestionControlMode::ExecutionTimeEstimate` cannot load execution time observations to SuiSystemState because it has an old version. This should not happen outside tests.");
1279+
if committee.epoch() > 1 {
1280+
error!("`PerObjectCongestionControlMode::ExecutionTimeEstimate` cannot load execution time observations to SuiSystemState because it has an old version. This should not happen outside tests.");
1281+
}
12801282
return itertools::Either::Left(std::iter::empty());
12811283
}
12821284
#[cfg(msim)]

0 commit comments

Comments
 (0)