Require "seen" aggregates to be valid #1749
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Current the spec says that if you have ever seen an aggregate on gossip before then you should reject it.
This means that for every aggregate that is seen on the gossip network, you must store its identifier (hash/root) for one epoch. This is an unbounded cache.
This PR changes the condition such that you only store the identifier for the aggregate if it is valid, meaning that the cache is bound by the number of aggregators in an epoch.
Implications
This change has an impact in the following scenario:
N > 1
aggregators in a committee.Without this PR, only the first attestation would propagate on the network. With this change, all
N
attestations will propagate.I think this scenario is very low impact (an attestation is <10ms to verify) and also it could also be replicated by without this PR by simply giving each
aggregate
a different, invalid aggregate signature.