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

gaiad: ExportGenesisFile() incorrectly overwrites genesis #4063

Merged

Conversation

alessio
Copy link
Contributor

@alessio alessio commented Apr 6, 2019

ExportGenesisFile() overwrites all non-gaia related
sections of the genesis.json file as it always
creates a new one from scratch.

Remove cmd/gaia/init.LoadGenesisDoc() in favor of
tendermint's types.GenesisDocFromFile().

Closes: #4066

  • Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
  • Wrote tests
  • Updated relevant documentation (docs/)
  • Added a relevant changelog entry: sdkch add [section] [stanza] [message]
  • rereviewed 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)

@codecov
Copy link

codecov bot commented Apr 6, 2019

Codecov Report

Merging #4063 into develop will decrease coverage by 0.05%.
The diff coverage is 33.33%.

@@             Coverage Diff             @@
##           develop    #4063      +/-   ##
===========================================
- Coverage    60.01%   59.95%   -0.06%     
===========================================
  Files          212      212              
  Lines        15107    15108       +1     
===========================================
- Hits          9066     9058       -8     
- Misses        5420     5428       +8     
- Partials       621      622       +1

@alessio alessio force-pushed the alessio/3130-dont-reset-tendermint-genesis-params-on-collect branch from 6b4bd28 to 0343fc3 Compare April 6, 2019 13:17
ExportGenesisFile() was overwriting all non-gaia related
sections of the genesis.json file as it was always
creating a new one from scratch.

Ref #3130
Duplication of effort discovered while on #3130
@alessio alessio force-pushed the alessio/3130-dont-reset-tendermint-genesis-params-on-collect branch from 0343fc3 to 2f0b833 Compare April 6, 2019 18:09
@alessio alessio marked this pull request as ready for review April 6, 2019 18:11
@alessio alessio requested a review from jleni April 7, 2019 16:50
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

cmd/gaia/init/utils.go Outdated Show resolved Hide resolved
@alessio alessio merged commit fbc6bda into develop Apr 8, 2019
@alessio alessio deleted the alessio/3130-dont-reset-tendermint-genesis-params-on-collect branch April 8, 2019 17:54
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.

4 participants