-
Notifications
You must be signed in to change notification settings - Fork 83
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 validators to router #259
Conversation
Codecov Report
@@ Coverage Diff @@
## main #259 +/- ##
==========================================
+ Coverage 55.78% 55.91% +0.12%
==========================================
Files 53 53
Lines 3671 3781 +110
==========================================
+ Hits 2048 2114 +66
- Misses 1345 1374 +29
- Partials 278 293 +15
Continue to review full report at Codecov.
|
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.
Looks Great!
core/validatorapi/router.go
Outdated
@@ -337,6 +427,36 @@ | |||
// uintParam returns a uint path parameter. | |||
func uintParam(params map[string]string, name string) (uint64, error) { | |||
param := params[name] | |||
if param == "" { |
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.
can use comma ok idiom here
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.
yeah
Adds the
/eth/v1/beacon/states/{state_id}/validators
endpoint to validatorapi router.Also fixes:
dependent_root
.category: feature
ticket: #251