-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use 16-bit random value in validator filter #8916
Use 16-bit random value in validator filter #8916
Conversation
.../java/tech/pegasys/teku/spec/logic/versions/electra/helpers/BeaconStateAccessorsElectra.java
Fixed
Show fixed
Hide fixed
.../java/tech/pegasys/teku/spec/logic/versions/electra/helpers/BeaconStateAccessorsElectra.java
Dismissed
Show dismissed
Hide dismissed
.../src/main/java/tech/pegasys/teku/spec/logic/versions/electra/helpers/MiscHelpersElectra.java
Fixed
Show fixed
Hide fixed
.../src/main/java/tech/pegasys/teku/spec/logic/versions/electra/helpers/MiscHelpersElectra.java
Dismissed
Show dismissed
Hide dismissed
in this PR we should re-enable2 fizzing tests disabled here: #8923 |
I've got a body root diff in mine too... |
this is weird. I'll spend some more time on it tomorrow, if in the meantime you don't solve the mystery |
Signed-off-by: Paul Harris <[email protected]>
…hich shows us a clear diff. Signed-off-by: Paul Harris <[email protected]>
Signed-off-by: Paul Harris <[email protected]>
Signed-off-by: Paul Harris <[email protected]>
lol, my bad. Seems like I copied the wrong spec files. I also fixed a uint test that seems to be affected by the change |
Haha no worries. Thank you for fixing this. Comparing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR Description
This PR implements the changes defined here:
Notably, this PR will:
computeProposerIndex
andgetNextSyncCommitteeIndices
.computeProposerIndex
, renamehash
torandomBytes
to match the spec.randomBytes
togetNextSyncCommitteeIndices
.MAX_RANDOM_VALUE
equal to2**16-1
.See the original implementations here:
teku/ethereum/spec/src/main/java/tech/pegasys/teku/spec/logic/common/helpers/MiscHelpers.java
Lines 112 to 139 in 7de9aa4
teku/ethereum/spec/src/main/java/tech/pegasys/teku/spec/logic/versions/altair/helpers/BeaconStateAccessorsAltair.java
Lines 104 to 132 in 7de9aa4
Documentation
doc-change-required
label to this PR if updates are required.Changelog