From 44bccda4b314808193e56f692fe9bba2640632ed Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Wed, 12 Jun 2019 15:39:48 +1000 Subject: [PATCH] epoch proc: set correct active index root --- eth2/state_processing/src/per_epoch_processing.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)?)?;