-
Notifications
You must be signed in to change notification settings - Fork 784
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
Electra spec changes for v1.5.0-beta.0
#6731
base: unstable
Are you sure you want to change the base?
Conversation
4f3e932
to
f892849
Compare
I think I've made all the substantial changes for Electra, but the tests are broken and I haven't looked into why. Some of them probably need disabling because this branch doesn't have the PeerDAS changes. I'll be back on Jan 6. |
consensus/fork_choice/tests/tests.rs
Outdated
// TODO(electra) The shuffling calculations changed between Altair and Electra. Without | ||
// skipping slots this test breaks. For some reason `fork_name_unchecked` returns Altair | ||
// initially, even though this test harness should be initialized with the most recent fork, i.e. Electra | ||
.skip_slots(32) |
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.
another TODO we should take a look at
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.
I've fixed both these TODOs by making the test harness skip block proposals for slashed validators. Commit: f4fe1b8
This is ready for review once CI passes (I think it should 🤞 ) |
v1.5.0-alpha.10
v1.5.0-beta.0
@@ -85,4 +85,4 @@ MAX_ATTESTATIONS: 128 | |||
# 2**4 (= 16) | |||
MAX_DEPOSITS: 16 | |||
# 2**4 (= 16) | |||
MAX_VOLUNTARY_EXITS: 16 | |||
MAX_VOLUNTARY_EXITS: 16 |
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.
Note for reviewers: the contents of the presets and configs are copied verbatim from consensus-specs
, which is why there are a mix of substantive changes and formatting changes.
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.
Self-review complete. I think this is good now.
Eh, tests are broken. Working on it. |
Should be good now. |
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.
These changes are in parity with the spec 👍
@@ -953,6 +972,21 @@ impl<E: EthSpec> BeaconState<E> { | |||
.ok_or(Error::ShuffleIndexOutOfBounds(index)) | |||
} | |||
|
|||
/// Get two random bytes from the given `seed`. | |||
/// | |||
/// This is used in place of the |
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.
cropped comment
Proposed Changes
Consensus changes for
v1.5.0-alpha.10
, and consequentlyv1.5.0-beta.0
which is only cosmetically different.Built on: