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.
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
Add
/eth/v2/validator/aggregate_attestation
#14481base: develop
Are you sure you want to change the base?
Add
/eth/v2/validator/aggregate_attestation
#14481Changes from 9 commits
97aa3ec
f9903c4
cbd5dd4
607cd31
fb8e325
f189e41
cb62038
f94403f
8f8ef67
99558f4
3a4acbd
f1a1591
55f78d9
29fc4f7
3048541
b980b91
8f88cb4
a358698
3ee2e54
7d168da
ead84cd
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 should return a 400 / bad request since they are required fields.
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.
They already do, within
shared.UintFromQuery
we haveValidateUint
which handles the http error, same thing applies toshared.HexFromQuery
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.
If they cannot be aggregate to just one (
len(agg) == 1
), then return best by committee bits count.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.
If there are multiple that match, return the best one by most CommitteeBitsVal().Count(), assuming they cannot be further aggregated.
Or consider returning all matching atts.