-
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
Update to frozen spec ❄️ (v0.8.1) #444
Conversation
Fixed a typo in the implementation of ssz::Decode for BitVector, which caused it to be considered variable length!
Allow computing the difference of two bitfields of different lengths.
SSZ benches relied upon fixed_len_vec -- it is easier to just delete them and rebuild them later (when necessary)
In the case where we tried to access the committee of a shard that didn't have a committee in the current epoch, we were accessing elements beyond the end of the shuffling vector and panicking! This commit adds a check to make the failure safe and explicit.
There was a bug in our implementation of get_indexed_attestation whereby incorrect "committee indices" were used to index into the custody bitfield. The bug was only observable in the case where some bits of the custody bitfield were set to 1. The implementation has been simplified to remove the bug, and a test added.
* Remove redundant max operation checks. * Always supply both messages when checking attestation signatures -- allowing verification of an attestation with no signatures. * Swap the order of the fork and domain constant in `get_domain`, to match the spec.
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 been through all of these files (phew).
It's looking good so far. There's one set of tests I want to add back in.
Next steps are to resolve these comments then try and merge master in. I'll take care of it from here (unless anyone wants to input, of course).
|
||
if !verify_bitfield_length(&bitfield, committee.committee.len()) { | ||
/* TODO(freeze): re-enable this? |
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.
Commented-out-boi
Proposed Changes
types
andstate_processing
to v0.8.1 of the spec.beacon_node
,validator_client
and other top-level cratesRelated Issues
Still to do