mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-25 13:07:18 +00:00
Fix bug in proposer rewards
This commit is contained in:
parent
50dd963fdd
commit
47128ea834
@ -233,12 +233,12 @@ 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, attestation_slot, spec.slots_per_epoch)?;
|
RelativeEpoch::from_slot(state.slot, inclusion_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,
|
||||||
proposer_index: state.get_beacon_proposer_index(
|
proposer_index: state.get_beacon_proposer_index(
|
||||||
attestation_slot,
|
inclusion_slot,
|
||||||
relative_epoch,
|
relative_epoch,
|
||||||
spec,
|
spec,
|
||||||
)?,
|
)?,
|
||||||
|
Loading…
Reference in New Issue
Block a user