-
Notifications
You must be signed in to change notification settings - Fork 997
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
Align gossip validation for aggregates with single attestations #3552
Conversation
A couple gossip validation rules are only specced out for single un-aggregated attestations, but are also checked by implementations for aggregates. This adds a copy of the missing gossip validation rules to the aggregated attestation docs.
- _[IGNORE]_ `aggregate.data.slot` is within the last `ATTESTATION_PROPAGATION_SLOT_RANGE` slots (with a `MAXIMUM_GOSSIP_CLOCK_DISPARITY` allowance) -- | ||
i.e. `aggregate.data.slot + ATTESTATION_PROPAGATION_SLOT_RANGE >= current_slot >= aggregate.data.slot` | ||
(a client MAY queue future aggregates for processing at the appropriate slot). | ||
- _[REJECT]_ The aggregate attestation's epoch matches its target -- i.e. `aggregate.data.target.epoch == | ||
compute_epoch_at_slot(aggregate.data.slot)` | ||
- _[REJECT]_ The number of aggregation bits matches the committee size -- i.e. |
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.
This is not the number of 1 bits, but the total number of bits regardless of value. Same condition as for the single attestations.
Looks good to me. Thanks. |
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
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.
nice
A couple gossip validation rules are only specced out for single un-aggregated attestations, but are also checked by implementations for aggregates. This adds a copy of the missing gossip validation rules to the aggregated attestation docs.