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

When someone is trying to generate a new key, they receive an erroneous error. This confuses new validators #241

Open
OgreAbroad opened this issue Feb 3, 2021 · 4 comments

Comments

@OgreAbroad
Copy link

When the following command is issued: (In accordance with docs.harmony.one)

./hmy keys generate-bls-keys --count 1 --shard 1 --passphrase

It returns an erroneous error:

Cannot connect to node http://localhost:9500, using Harmony mainnet endpoint https://api.s0.t.hmny.io/

If paying attention, it still allows you to create a passphrase, repeat to verify, and generate the key. In the past week, 2 out of 4 new validators got tripped up by this step.

@sophoah
Copy link
Contributor

sophoah commented Feb 3, 2021

@sebastianj @rlan35 do you know what is the purpose of that error message ? I feel like it doesn't need to be specified ? also i never understood why there is need to link a BLS key to a network ? Creating the BLS key should be able to done offline.

@n0vaxNFT
Copy link

n0vaxNFT commented Feb 5, 2021

Yeah, this stumbled me for sure. I destroyed my VPS and started over. But it's pretty much par the course when setting up a new node to destroy things and start over several times. It's always easier than trying to identify and fix some little thing you may have broken.

@LeoHChen
Copy link
Contributor

The network node has to be specified as each network may have a different number of shards. For example, a testent may have only 2 shards, mainnet has 4 shards, so you can't generate a testnet blskey specifying shard 3.

@LeoHChen
Copy link
Contributor

Maybe we just need to improve the help message a bit more.

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

4 participants