diff --git a/eth2/state_processing/src/per_epoch_processing.rs b/eth2/state_processing/src/per_epoch_processing.rs index d261b8b47..42522f401 100644 --- a/eth2/state_processing/src/per_epoch_processing.rs +++ b/eth2/state_processing/src/per_epoch_processing.rs @@ -226,7 +226,11 @@ pub fn process_final_updates( .get_active_validator_indices(next_epoch + spec.activation_exit_delay) .tree_hash_root()[..], ); - state.set_active_index_root(next_epoch, active_index_root, spec)?; + state.set_active_index_root( + next_epoch + spec.activation_exit_delay, + active_index_root, + spec, + )?; // Set total slashed balances state.set_slashed_balance(next_epoch, state.get_slashed_balance(current_epoch)?)?;