epoch proc: set correct active index root

This commit is contained in:
Michael Sproul 2019-06-12 15:39:48 +10:00
parent c649988189
commit 44bccda4b3
No known key found for this signature in database
GPG Key ID: 77B1309D2E54E914

View File

@ -226,7 +226,11 @@ pub fn process_final_updates<T: EthSpec>(
.get_active_validator_indices(next_epoch + spec.activation_exit_delay) .get_active_validator_indices(next_epoch + spec.activation_exit_delay)
.tree_hash_root()[..], .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 // Set total slashed balances
state.set_slashed_balance(next_epoch, state.get_slashed_balance(current_epoch)?)?; state.set_slashed_balance(next_epoch, state.get_slashed_balance(current_epoch)?)?;