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

Basecoin cmd tool generates genesis.json unmarshaling error. #173

Closed
LeeBlues opened this issue Jul 16, 2017 · 4 comments
Closed

Basecoin cmd tool generates genesis.json unmarshaling error. #173

LeeBlues opened this issue Jul 16, 2017 · 4 comments

Comments

@LeeBlues
Copy link

LeeBlues commented Jul 16, 2017

After creating new key by basecli new key command, I tried to start basecoin app through basecoin start cmd. Unfortunately It generates error message like this : ERROR: Error in LoadGenesis: unmarshaling genesis file: encoding/hex: odd length hex string.

I tested it at macOS 10.12.5 and Ubuntu 16.04.

@LeeBlues LeeBlues changed the title Basecoin cmd tool genesis.json unmarshaling error. Basecoin cmd tool generates genesis.json unmarshaling error. Jul 16, 2017
@ethanfrey
Copy link
Contributor

@LeeBlues Please send the terminal output along with commands. I have not had such trouble.

My guess is you have an old basecoin genesis file (pre-tendermint 0.10).

rm -rf ~/.basecoin ~/.basecli
unset BCHOME

basecli keys new FooBar
basecoin init <foobar addr>
basecoin start
...

Please try that and show me the output. Thanks.

@LeeBlues
Copy link
Author

LeeBlues commented Jul 17, 2017

It works. thanks! I initialized basecoin through name of the key instead of actual address.

@ethanfrey
Copy link
Contributor

Okay, we should do a check in basecoin init to ensure that we create a valid genesis file. I'll make a little fix for this.

@ethanfrey
Copy link
Contributor

Okay, added this check in 65e9905

Will work better with 0.6.2

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

2 participants