Skip to content
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

Merged
merged 2 commits into from
Mar 28, 2018

Conversation

cwgoes
Copy link
Contributor

@cwgoes cwgoes commented Mar 27, 2018

Ref #704

@cwgoes cwgoes requested a review from ebuchman as a code owner March 27, 2018 09:49
@codecov
Copy link

codecov bot commented Mar 27, 2018

Codecov Report

Merging #710 into develop will increase coverage by 0.69%.
The diff coverage is 0%.

@@             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

return err
}
privValidator := types.LoadOrGenPrivValidatorFS(cfg.PrivValidatorFile())
pubKeyJSONBytes, _ := data.ToJSON(privValidator.PubKey)
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@cwgoes
Copy link
Contributor Author

cwgoes commented Mar 27, 2018

@rigelrozanski OK?

@cwgoes cwgoes force-pushed the cwgoes/show_validator branch from f35653a to fef3e15 Compare March 28, 2018 09:42
Copy link
Contributor

@rigelrozanski rigelrozanski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@rigelrozanski rigelrozanski merged commit 76d66ab into develop Mar 28, 2018
@rigelrozanski rigelrozanski deleted the cwgoes/show_validator branch March 28, 2018 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants