From 47128ea834620ea48eef04d21feb39d714d34ada Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Tue, 4 Jun 2019 15:00:52 +1000 Subject: [PATCH] Fix bug in proposer rewards --- .../src/per_epoch_processing/validator_statuses.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 2cdd8700c..ed1b968d7 100644 --- a/eth2/state_processing/src/per_epoch_processing/validator_statuses.rs +++ b/eth2/state_processing/src/per_epoch_processing/validator_statuses.rs @@ -233,12 +233,12 @@ impl ValidatorStatuses { let attestation_slot = state.get_attestation_slot(&a.data)?; let inclusion_slot = attestation_slot + a.inclusion_delay; let relative_epoch = - RelativeEpoch::from_slot(state.slot, attestation_slot, spec.slots_per_epoch)?; + RelativeEpoch::from_slot(state.slot, inclusion_slot, spec.slots_per_epoch)?; status.inclusion_info = Some(InclusionInfo { slot: inclusion_slot, distance: a.inclusion_delay, proposer_index: state.get_beacon_proposer_index( - attestation_slot, + inclusion_slot, relative_epoch, spec, )?,