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

simapp InitChainer: use json instead of tmjson #7523

Merged
merged 6 commits into from
Feb 24, 2021
Merged

Conversation

amaury1093
Copy link
Contributor

@amaury1093 amaury1093 commented Oct 13, 2020

Description

ref: #7514 (comment)

GenesisState is a map[string]json.RawMessage. So a json.Unmarshal is enough. The actual decoding of these RawMessage using appCodec is done in InitGenesis (2 lines below).

TODO:

  • I will create a test to: 1/ export a genesis file and 2/ run simapp again with the exported file.

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • 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
  • Review Codecov Report in the comment section below once CI passes

@codecov
Copy link

codecov bot commented Oct 13, 2020

Codecov Report

Merging #7523 (0e8df78) into master (7969135) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #7523   +/-   ##
=======================================
  Coverage   61.46%   61.46%           
=======================================
  Files         659      659           
  Lines       37932    37932           
=======================================
  Hits        23316    23316           
  Misses      12172    12172           
  Partials     2444     2444           
Impacted Files Coverage Δ
simapp/app.go 85.46% <0.00%> (ø)

@github-actions
Copy link
Contributor

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.

@github-actions github-actions bot added the stale label Nov 28, 2020
@github-actions github-actions bot closed this Dec 4, 2020
@amaury1093 amaury1093 reopened this Dec 4, 2020
@amaury1093 amaury1093 added pinned and removed stale labels Dec 4, 2020
@amaury1093
Copy link
Contributor Author

Still relevant, i'll try to add this missing test.

@tac0turtle
Copy link
Member

Any progress here? Can we close the or and open an issue. We can keep the branch around but let's clean up the pull request section

@amaury1093 amaury1093 marked this pull request as ready for review February 24, 2021 14:06
@amaury1093 amaury1093 added A:automerge Automatically merge PR once all prerequisites pass. Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity. labels Feb 24, 2021
@amaury1093
Copy link
Contributor Author

amaury1093 commented Feb 24, 2021

ready for review

will do the test in another PR.

Copy link
Member

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

Looks good. Did you spin up a node to test it?

@amaury1093
Copy link
Contributor Author

Yes. btw liveness-test also did.

@mergify mergify bot merged commit 2539acd into master Feb 24, 2021
@mergify mergify bot deleted the am-7514-decode branch February 24, 2021 14:49
larry0x pushed a commit to larry0x/cosmos-sdk that referenced this pull request May 22, 2023
* simapp InitChainer: use json instead of tmjson

* First run for test

* Revert export_test

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass. Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants