Skip to content

Commit

Permalink
Remove old balance getter in ef_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Jun 25, 2021
1 parent 0a4ac44 commit f0696af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ pub fn process_epoch<T: EthSpec>(
// Slashings.
process_slashings(
state,
// FIXME(paul): could this be invalidated by rewards/penalties?
participation_cache.current_epoch_total_active_balance(),
spec.proportional_slashing_multiplier_altair,
spec,
Expand Down
4 changes: 3 additions & 1 deletion testing/ef_tests/src/cases/epoch_processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ impl<E: EthSpec> EpochTransition<E> for Slashings {
BeaconState::Altair(_) => {
process_slashings(
state,
state.get_total_active_balance(spec)?,
altair::ParticipationCache::new(state, spec)
.unwrap()
.current_epoch_total_active_balance(),
spec.proportional_slashing_multiplier_altair,
spec,
)?;
Expand Down

0 comments on commit f0696af

Please sign in to comment.