Skip to content

Commit f0696af

Browse files
committed
Remove old balance getter in ef_tests
1 parent 0a4ac44 commit f0696af

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

consensus/state_processing/src/per_epoch_processing/altair.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ pub fn process_epoch<T: EthSpec>(
4545
// Slashings.
4646
process_slashings(
4747
state,
48-
// FIXME(paul): could this be invalidated by rewards/penalties?
4948
participation_cache.current_epoch_total_active_balance(),
5049
spec.proportional_slashing_multiplier_altair,
5150
spec,

testing/ef_tests/src/cases/epoch_processing.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ impl<E: EthSpec> EpochTransition<E> for Slashings {
142142
BeaconState::Altair(_) => {
143143
process_slashings(
144144
state,
145-
state.get_total_active_balance(spec)?,
145+
altair::ParticipationCache::new(state, spec)
146+
.unwrap()
147+
.current_epoch_total_active_balance(),
146148
spec.proportional_slashing_multiplier_altair,
147149
spec,
148150
)?;

0 commit comments

Comments
 (0)