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

validate-genesis not passing for exported genesis file #5518

Closed
4 tasks
kwunyeung opened this issue Jan 14, 2020 · 1 comment
Closed
4 tasks

validate-genesis not passing for exported genesis file #5518

kwunyeung opened this issue Jan 14, 2020 · 1 comment

Comments

@kwunyeung
Copy link
Contributor

kwunyeung commented Jan 14, 2020

Summary of Bug

gaiad validate-genesis not passing for an exported and migrated genesis file. Here is the output.

gaiad validate-genesis
validating genesis file at /Users/kwunyeung/.gaiad/config/genesis.json
ERROR: error validating genesis file /Users/kwunyeung/.gaiad/config/genesis.json: UnmarshalJSON cannot decode empty bytes

Version

gaiad v2.0.3 validating cosmoshub-3 genesis file

Steps to Reproduce

  1. put the cosmoshub-3 genesis file in $HOME/.gaiad/config
  2. run gaiad validate-genesis

The error is due to no genutil object in the cosmoshub-3 genesis file. It's better to report what is wrong in the genesis file instead of only reporting an error from an operation.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@alexanderbez
Copy link
Contributor

Thanks @kwunyeung! This is a duplicate of #5086 and resolved by #5499.

However, validating the hub-3 genesis file will still fail because app_state.gentxs is still null. So to make it pass validation, replace it with []. I don't think there is any other way to make it retroactively pass.

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

No branches or pull requests

3 participants