Fix bug in epoch_processing

This commit is contained in:
Paul Hauner 2019-06-04 14:16:45 +10:00
parent 67fdb4a7fb
commit 50dd963fdd
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -233,7 +233,7 @@ impl ValidatorStatuses {
let attestation_slot = state.get_attestation_slot(&a.data)?; let attestation_slot = state.get_attestation_slot(&a.data)?;
let inclusion_slot = attestation_slot + a.inclusion_delay; let inclusion_slot = attestation_slot + a.inclusion_delay;
let relative_epoch = 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 { status.inclusion_info = Some(InclusionInfo {
slot: inclusion_slot, slot: inclusion_slot,
distance: a.inclusion_delay, distance: a.inclusion_delay,