-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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 show_validator command from tendermint to basecoind #710
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #710 +/- ##
===========================================
+ Coverage 64.04% 64.74% +0.69%
===========================================
Files 43 43
Lines 2022 2008 -14
===========================================
+ Hits 1295 1300 +5
+ Misses 615 597 -18
+ Partials 112 111 -1 |
server/show_validator.go
Outdated
return err | ||
} | ||
privValidator := types.LoadOrGenPrivValidatorFS(cfg.PrivValidatorFile()) | ||
pubKeyJSONBytes, _ := data.ToJSON(privValidator.PubKey) |
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.
we should handle this error instead of just _
ing it?
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.
I just copied this from Tendermint (which doesn't handle the error). Presumably the encoding will never fail?
Probably worth fixing anyways though.
@rigelrozanski OK? |
f35653a
to
fef3e15
Compare
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.
nice
Ref #704