cosmos-sdk/docs/getting-started/create-testnet.md
Matthew Slipper 03c56fc024 Merge PR #2190: Rename --gen-txs to --with-txs
* Rename --gen-txs to --with-txs

Closes #1088.

* Update CHANGELOG.md
2018-08-30 21:33:48 -04:00

760 B

Create your Own Testnet

To create your own testnet, first each validator will need to install gaiad and run gen-tx

gaiad init gen-tx --name <account_name>

This populations $HOME/.gaiad/gen-tx/ with a json file.

Now these json files need to be aggregated together via Github, a Google form, pastebin or other methods.

Place all files on one computer in $HOME/.gaiad/gen-tx/

gaiad init --with-txs -o --chain=<chain-name>

This will generate a genesis.json in $HOME/.gaiad/config/genesis.json distribute this file to all validators on your testnet.

Export state

To export state and reload (useful for testing purposes):

gaiad export > genesis.json; cp genesis.json ~/.gaiad/config/genesis.json; gaiad start