From 50dd963fddb9f5bade261d2c9d943c24afad043c Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Tue, 4 Jun 2019 14:16:45 +1000 Subject: [PATCH] Fix bug in epoch_processing --- .../src/per_epoch_processing/validator_statuses.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a2ce292eb..2cdd8700c 100644 --- a/eth2/state_processing/src/per_epoch_processing/validator_statuses.rs +++ b/eth2/state_processing/src/per_epoch_processing/validator_statuses.rs @@ -233,7 +233,7 @@ 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, inclusion_slot, spec.slots_per_epoch)?; + RelativeEpoch::from_slot(state.slot, attestation_slot, spec.slots_per_epoch)?; status.inclusion_info = Some(InclusionInfo { slot: inclusion_slot, distance: a.inclusion_delay,