Improve generate genesis script#1391
Merged
NicolasMahe merged 5 commits intodevfrom Oct 3, 2019
Merged
Conversation
This was referenced Oct 2, 2019
krhubert
approved these changes
Oct 2, 2019
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
engine/.genesisfolder all necessary info (includes private keys) for not only 1 validator, but other validator as well as simple client to be started easily with right config--gen-genesisthat generate a new genesis before starting the engine. It should be passed only once if you want to connect multiple engine to each other. Set the envMESG_VALIDATOR_NUMBERto 2 or more if you want to create a network with multiple validator.--genesis_accountto copy the all accounts private info to the engine. Only useful to execute transaction with a validator account. (will be deleted when it's possible to import an account from private key or mnemonic).--validatoris still present and copy one validator private info to the engine. You will also need to provide the right validator name using the envMESG_NAME(the name are outputted when using flag--gen-genesis. Make sure also to set another port withMESG_TENDERMINT_VALIDATOR_PORTif you want to start multiple validator on the same computer.Example of 2 validators and 2 clients:
closes #1385