From ed00ad9d00dabc7b44485c5cd1aa00fad9529675 Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Mon, 6 May 2019 14:18:05 +1000 Subject: [PATCH] spec: get_crosslink_deltas to v0.6.1 --- .../src/per_epoch_processing/apply_rewards.rs | 4 ++-- .../src/per_epoch_processing/validator_statuses.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eth2/state_processing/src/per_epoch_processing/apply_rewards.rs b/eth2/state_processing/src/per_epoch_processing/apply_rewards.rs index 2c45dd822..bc02b67a3 100644 --- a/eth2/state_processing/src/per_epoch_processing/apply_rewards.rs +++ b/eth2/state_processing/src/per_epoch_processing/apply_rewards.rs @@ -230,7 +230,7 @@ fn get_attestation_delta( /// Calculate the deltas based upon the winning roots for attestations during the previous epoch. /// -/// Spec v0.5.1 +/// Spec v0.6.1 fn get_crosslink_deltas( deltas: &mut Vec, state: &BeaconState, @@ -243,7 +243,7 @@ fn get_crosslink_deltas( let base_reward = get_base_reward( state, index, - validator_statuses.total_balances.previous_epoch, + validator_statuses.total_balances.current_epoch, spec, )?; diff --git a/eth2/state_processing/src/per_epoch_processing/validator_statuses.rs b/eth2/state_processing/src/per_epoch_processing/validator_statuses.rs index e57c1afc3..524a0db09 100644 --- a/eth2/state_processing/src/per_epoch_processing/validator_statuses.rs +++ b/eth2/state_processing/src/per_epoch_processing/validator_statuses.rs @@ -283,7 +283,7 @@ impl ValidatorStatuses { /// Update the `statuses` for each validator based upon whether or not they attested to the /// "winning" shard block root for the previous epoch. /// - /// Spec v0.5.1 + /// Spec v0.6.1 pub fn process_winning_roots( &mut self, state: &BeaconState,