-
Notifications
You must be signed in to change notification settings - Fork 90
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
core/validatorapi: add sync committee duties to validatorapi #1278
Conversation
Codecov ReportBase: 53.78% // Head: 53.87% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1278 +/- ##
==========================================
+ Coverage 53.78% 53.87% +0.08%
==========================================
Files 139 139
Lines 16457 16486 +29
==========================================
+ Hits 8852 8882 +30
+ Misses 6342 6338 -4
- Partials 1263 1266 +3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
core/validatorapi/eth2types.go
Outdated
|
||
// syncCommitteeDutiesRequest defines the request to the getSyncCommitteeDuties endpoint. | ||
// See https://ethereum.github.io/beacon-APIs/#/ValidatorRequiredApi/getSyncCommitteeDuties. | ||
type syncCommitteeDutiesRequest []eth2p0.ValidatorIndex |
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.
rather just rename attesterDutiesRequest
to valIndexesJSON
and re-use that type.
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.
done
core/validatorapi/router.go
Outdated
} | ||
|
||
if len(data) == 0 { | ||
data = []*eth2v1.SyncCommitteeDuty{} |
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.
is this really required? why isn't nil fine?
} | ||
|
||
// Replace root public keys with public shares. | ||
for i := 0; i < len(duties); i++ { |
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.
no test for 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.
added
Adds support for sync committee duties to validatorapi.
category: feature
ticket: #1261