Improve testnet docs (#2928)

* improve testnet docs
This commit is contained in:
gamarin2
2018-12-01 09:54:59 -08:00
committed by Jack Zampolin
parent bedc900d49
commit 5c5ea48623
8 changed files with 33 additions and 27 deletions
+7 -2
View File
@@ -1,9 +1,11 @@
# Validator Setup
# Run a validator on the gaia public testnet
::: tip
Information on how to join the current testnet (`genesis.json` file and seeds) is held [in our `testnet` repo](https://github.com/cosmos/testnets/tree/master/latest). Please check there if you are looking to join our latest testnet.
:::
__Note__: This documentation is only intended for validators of the **public testnet**
Before setting up your validator node, make sure you've already gone through the [Full Node Setup](/docs/getting-started/full-node.md) guide.
## What is a Validator?
@@ -126,9 +128,10 @@ mkdir -p $HOME/.gaiad/config
curl https://raw.githubusercontent.com/cosmos/testnets/master/latest/genesis.json > $HOME/.gaiad/config/genesis.json
```
Note we use the `latest` directory in the [testnets repo](https://github.com/cosmos/testnets)
__Note:__ We use the `latest` directory in the [testnets repo](https://github.com/cosmos/testnets)
which contains details for the latest testnet. If you are connecting to a different testnet, ensure you get the right files.
You also need to fetch the genesis transactions of all the other genesis validators. For now there is no repository where genesis transactions can be submitted by validators, but this will as soon as we try out this feature in a testnet.
Once you've collected all genesis transactions in `~/.gaiad/config/gentx`, you can run:
@@ -137,6 +140,8 @@ Once you've collected all genesis transactions in `~/.gaiad/config/gentx`, you c
gaiad collect-gentxs
```
__Note:__ The accounts from which you delegate in the `gentx` transactions need to possess staking tokens in the genesis file, otherwise `collect-gentx` will fail.
The previous command will collect all genesis transactions and finalise `genesis.json`. To verify the correctness of the configuration and start the node run:
```bash