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

ensure non-nil gentxs #5497

Merged
merged 5 commits into from
Feb 10, 2020
Merged

ensure non-nil gentxs #5497

merged 5 commits into from
Feb 10, 2020

Conversation

cbarraford
Copy link
Contributor

@cbarraford cbarraford commented Jan 9, 2020

Closes: #5086

Description

Ensure we never have null in our genesis for gentxs.


For contributor use:

  • 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.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

alessio
alessio previously requested changes Jan 9, 2020
Copy link
Contributor

@alessio alessio left a comment

Choose a reason for hiding this comment

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

Given that this sprang from a bug report, we definitely need a test case here

@cbarraford
Copy link
Contributor Author

added tests.

Copy link
Collaborator

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

ACK, mind adding a bug fix entry on the CHANGELOG?

x/genutil/types/genesis_state_test.go Show resolved Hide resolved
x/genutil/types/genesis_state_test.go Show resolved Hide resolved
@cbarraford
Copy link
Contributor Author

added changelog entry.

@stale
Copy link

stale bot commented Feb 10, 2020

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 10, 2020
@cbarraford
Copy link
Contributor Author

cbarraford commented Feb 10, 2020

Are there any other blockers to this PR merging?

@stale stale bot removed the stale label Feb 10, 2020
CHANGELOG.md Outdated
@@ -250,6 +250,8 @@ to detail this new feature and how state transitions occur.
* (keys) Fix ledger custom coin type support bug
* (x/gov) [\#5107](https://github.com/cosmos/cosmos-sdk/pull/5107) Sum validator operator's all voting power when tally votes
* (rest) [\#5212](https://github.com/cosmos/cosmos-sdk/issues/5212) Fix pagination in the `/gov/proposals` handler.
* (genesis) [\#5086](https://github.com/cosmos/cosmos-sdk/issues/5086) Ensure
Copy link
Contributor

Choose a reason for hiding this comment

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

Changes look good, however, we've released a version since this PR. So we need to move this entry up to the Unreleased section.

@alexanderbez
Copy link
Contributor

Looks good @cbarraford -- sorry for the delay! All we need to do is fix the changelog and we can merge 👍

@codecov
Copy link

codecov bot commented Feb 10, 2020

Codecov Report

Merging #5497 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5497      +/-   ##
==========================================
- Coverage   44.64%   44.64%   -0.01%     
==========================================
  Files         324      324              
  Lines       24707    24709       +2     
==========================================
  Hits        11031    11031              
- Misses      12616    12618       +2     
  Partials     1060     1060
Impacted Files Coverage Δ
x/genutil/types/genesis_state.go 41.66% <100%> (+2.53%) ⬆️
x/mock/app.go 65.24% <0%> (-1.22%) ⬇️

@cbarraford
Copy link
Contributor Author

Ok, done.

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.

ACK

@alexanderbez alexanderbez merged commit e2d4b9d into cosmos:master Feb 10, 2020
@alexanderbez alexanderbez mentioned this pull request Mar 10, 2020
10 tasks
alexanderbez pushed a commit that referenced this pull request Mar 10, 2020
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.

Bad genesis validation error
4 participants