You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to v2.0.0-rc.1 in Prater, I get that the attestation inclusion distance is 0 for all validators, both in the summary posted by the validator and in the information fetched from the beacon chain using GetValidatorPerformance. Note that even if the attestation is not produced, a 0 is returned, whereas ^uint(0) was being returned before.
From the validator logs: Note averageInclusionDistance="0.00 slots"
I was talking with @terencechain about this and we landed on the fact that Altair no longer supports this information from the beacon state. I'll submit a PR to mark these fields as deprecated and stop showing them after the Altair hardfork.
Here's the difference in accounting reform between phase0 and Altair
In phase 0
correctlyVotedTarget : voted target checkpoint correct
correctlyVotedSource: voted source checkpoint correct
correctlyVotedHead: voted head correct
inclusionDistance: how fast the attestation get included in the block
In phase1
correctlyVotedTarget : voted target checkpoint correct && att is included less than 32 slots
correctlyVotedSource: voted source checkpoint correct && att is included less than 6 slots
correctlyVotedHead: voted head correct && att is included in 1 slot
These correctlyVotedXXX info has some inclusion distance information in it, but it's no longer a number
🐞 Bug Report
Description
After upgrading to
v2.0.0-rc.1
inPrater
, I get that the attestation inclusion distance is 0 for all validators, both in the summary posted by the validator and in the information fetched from the beacon chain usingGetValidatorPerformance
. Note that even if the attestation is not produced, a 0 is returned, whereas^uint(0)
was being returned before.From the validator logs: Note
averageInclusionDistance="0.00 slots"
time="2021-09-07 11:39:08" level=info msg="Vote summary since launch" attestationsInclusionPct="100%" averageInclusionDistance="0.00 slots" correctlyVotedHeadPct="86%" correctlyVotedSourcePct="99%" correctlyVotedTargetPct="100%" numberOfEpochs=902 pctChangeCombinedBalance="0.05755%" prefix=validator
I also tried querying the beacon node by myself with
GetValidatorPerformance()
and I get that InclusionDistances is always 0. I guess the issue might be somewhere here: https://github.com/prysmaticlabs/prysm/blob/develop/beacon-chain/rpc/prysm/v1alpha1/beacon/validators.go#L685-L699. The validatorSummary[n].inclusionDistances is empty for Altair.Has this worked before in a previous version?
This was working on several previous versions, such as
v1.4.3
, where a valid attestation distance was being returned.🔬 Minimal Reproduction
The issue can be reproduced having a
beacon-chain
runningv2..0.0-rc.1
in Prater and callingGetValidatorPerformance
.See returned
resp
for different validators.Inactive key (at the moment of writing)
Active key
🔥 Error
Not an error per se but an unexpected output
averageInclusionDistance="0.00 slots
.time="2021-09-07 11:39:08" level=info msg="Vote summary since launch" attestationsInclusionPct="100%" averageInclusionDistance="0.00 slots" correctlyVotedHeadPct="86%" correctlyVotedSourcePct="99%" correctlyVotedTargetPct="100%" numberOfEpochs=902 pctChangeCombinedBalance="0.05755%" prefix=validator
🌍 Your Environment
Operating System: Linux
What version of Prysm are you running? (Which release)
v2.0.0-rc.1
Anything else relevant (validator index / public key)? NA
The text was updated successfully, but these errors were encountered: