diff --git a/actors/reward/src/testing.rs b/actors/reward/src/testing.rs index cfddba441..91d658ab8 100644 --- a/actors/reward/src/testing.rs +++ b/actors/reward/src/testing.rs @@ -1,4 +1,4 @@ -use crate::{baseline_power_from_prev, State}; +use crate::State; use fil_actors_runtime::MessageAccumulator; use fvm_shared::{clock::ChainEpoch, econ::TokenAmount}; use num_traits::Signed; @@ -52,17 +52,5 @@ pub fn check_state_invariants( format!("cumsum realized negative ({})", state.cumsum_realized), ); - // Theoretically we should compare effective_baseline_power <= this_epoch_baseline_power but - // because of rounding issues explained and tracked in https://github.com/filecoin-project/builtin-actors/issues/459 - // we settled on this workaround. - let next_epoch_baseline_power = baseline_power_from_prev(&state.this_epoch_baseline_power); - acc.require( - state.effective_baseline_power <= next_epoch_baseline_power, - format!( - "effective baseline power ({}) > next_epoch_baseline_power ({})", - state.effective_baseline_power, next_epoch_baseline_power - ), - ); - (StateSummary::default(), acc) }