-
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
Bad genesis validation error #5086
Comments
Btw, my
This file was generated from |
also, my genutil was wrong. was this
should be ...
|
the default value for |
just a stab in the dark, but i'd guess that the code isn't init'ing the variable right. This will create var gentxs []gentx vs this will create gentxs := make([]gentx, 0) |
correct, we need to make sure gentxs default to |
This is still happening. Need to fix ASAP. |
Yes this needs to be fixed, I got stuck on this for a good hour because of genutil was not being formatted correctly |
@k would you be willing to instead fix the issue here and open a PR in the SDK? We'd be happy to review and merge. |
@alexanderbez not confident i'm approaching this right, but here is a stab at the problem. |
I don't follow @cbarraford? This is the only approach AFAIK, what is the alternative? |
@alexanderbez i like the approach you have in your PR better than mine. Good work! |
:) That being done, I still wonder if we should include your PR. That is, if genesis state constructors should set slices to empty when they're nil. WDYT @fedekunze ? |
I'll follow your lead on this. Happy to make any further changes to the PR, if needed |
Summary of Bug
When validating my genesis.json file, i get an error that doesn't really help me to understand the problem.
Here is the genesis file.
https://gist.github.com/cbarraford/45edb0e0e6d7f206c6dee1751d617188
Version
0.37
Steps to Reproduce
validate the attached genesis file
For Admin Use
The text was updated successfully, but these errors were encountered: