-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Problem with null
genutil when exporting state
#5765
Comments
Indeed, it should be |
v0.38.1 |
Interesting. The |
If I manually replace the
However, when I put
|
Sorry, I should've clarified. This is what I'd expect for default/empty state: "genutil": {
"gentxs": []
} Does that not work? |
However, upon export, it's still // ExportGenesis returns the exported genesis state as raw bytes for the genutil
// module.
func (am AppModule) ExportGenesis(_ sdk.Context, _ codec.JSONMarshaler) json.RawMessage {
return nil
} This needs to return the state. |
Yes what you suggested:
works too. |
Thanks for the report @toml01. Easy fix, sorry for this. |
Cool, I can open a quick PR for this |
Yes, please! |
Thanks @alexanderbez ! Didn't have a chance to look at it yet, sorry. |
Summary of Bug
Exporting state:
Then when validating, I'm getting the following error:
Then looked in
a.json
(the file exported), and noticed:If I'm not mistaken, it should be
"genutil": {}
right?The full exported state:
https://gist.github.com/toml01/3711dfa85b26d37916080040b67ef827
This bug looks similar to #5086 , should've been fixed in 0.38 I believe?
Version
v0.38.1
Steps to Reproduce
Run a chain for some time, then just export the state with
--for-zero-height
and--height
and check forgenutil
For Admin Use
The text was updated successfully, but these errors were encountered: