Skip to content
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

Ignore aggregate attestations that are a subset of aggregates we've already seen #5439

Merged
merged 3 commits into from
May 6, 2022

Conversation

ajsutton
Copy link
Contributor

@ajsutton ajsutton commented May 6, 2022

PR Description

Change the aggregate attestation validation rules to ignore any aggregate that we've seen a non-strict superset for already. This avoids reprocessing and gossiping aggregates that add no new value.

The set of received aggregate hashes is removed because they will be caught by this new check (ie an aggregate is always a non-strict superset of itself).

Fixed Issue(s)

#5304 (need to apply to sync committee aggregates as well before it's complete)

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Copy link
Contributor

@rolfyone rolfyone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ajsutton ajsutton merged commit be1f491 into Consensys:master May 6, 2022
@ajsutton ajsutton deleted the ignore-subset-aggregates branch May 6, 2022 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants