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

R4R: Staking Querier pt1 #2249

Merged
merged 64 commits into from
Sep 13, 2018
Merged

R4R: Staking Querier pt1 #2249

merged 64 commits into from
Sep 13, 2018

Conversation

fedekunze
Copy link
Collaborator

@fedekunze fedekunze commented Sep 6, 2018

Split staking querier logic from #2139
Closes #2009 and luniehq/lunie#1133

  • Targeted PR against correct branch (see CONTRIBUTING.md)

  • Linked to github-issue with discussion and accepted design OR link to spec that describes this work.

  • Wrote tests

  • Updated relevant documentation (docs/)

  • Added entries in PENDING.md with issue #

  • Reviewed Files changed in the github PR explorer


For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

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.

Good stuff, code much cleaner than previous PR. Biggest comment here is we shouldn't allow for retrieve all (besides through the use of special functions for state dumps).

@rigelrozanski
Copy link
Contributor

failing lint

@fedekunze
Copy link
Collaborator Author

@rigelrozanski @cwgoes Fixed linter errors, but I also pulled from develop and test_sim_gaia_fast is failing now...

@rigelrozanski
Copy link
Contributor

rigelrozanski commented Sep 13, 2018

@fedekunze yeah test_sim_gaia_fast is failing on develop not due to this PR

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.

My old comments are resolved - export bug was introduced here though (see the comment)

x/stake/keeper/validator.go Outdated Show resolved Hide resolved
x/stake/genesis.go Outdated Show resolved Hide resolved
x/stake/keeper/query_utils.go Show resolved Hide resolved
@fedekunze
Copy link
Collaborator Author

@rigelrozanski @cwgoes addressed comments

Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

Left some general comments, but otherwise utACK 👍

client/lcd/lcd_test.go Show resolved Hide resolved
@@ -22,6 +22,7 @@ type SignBody struct {
AppendSig bool `json:"append_sig"`
}

// nolint: unparam
Copy link
Contributor

Choose a reason for hiding this comment

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

If we do _ context.CLIContext do we still get a lint error?

x/stake/keeper/query_utils.go Show resolved Hide resolved
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.

Thanks for the hard work!

@rigelrozanski rigelrozanski merged commit d195cc1 into develop Sep 13, 2018
@rigelrozanski rigelrozanski deleted the fedekunze/2009-querier-pt1 branch September 13, 2018 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants