diff --git a/helper_functions/src/fork.rs b/helper_functions/src/fork.rs index 7a6fa5d3..ccd8b509 100644 --- a/helper_functions/src/fork.rs +++ b/helper_functions/src/fork.rs @@ -549,7 +549,7 @@ pub fn upgrade_to_electra( // initial value of `earliest_exit_epoch` let earliest_activation_epoch = misc::compute_activation_exit_epoch::

(epoch); - for exit_epoch in validators + let earliest_exit_epoch = validators .into_iter() .map(|validator| validator.exit_epoch) .filter(|exit_epoch| *exit_epoch != FAR_FUTURE_EPOCH)