tutorial clarifications

This commit is contained in:
Ruaridh 2018-08-20 20:19:20 -04:00 committed by GitHub
parent 2e4732cf24
commit 3c7f6cb011
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,9 +13,9 @@ Try it out - run a full node to sync to the testnet, or set up as a validator.
## Install ## Install
### Source <!--### Source-->
Requirements: go installed and set up. Requirements: go installed and set up (version 1.10+).
1. Get the code. 1. Get the code.
@ -35,10 +35,9 @@ Requirements: go installed and set up.
go install ./cmd/kvd go install ./cmd/kvd
go install ./cmd/kvcli go install ./cmd/kvcli
### Docker <!--### Docker
TODO Requirements: docker installed.
<!-- Requirements: docker installed.
No installation necessary, just prepend commands with `docker run kava/kava`. TODO name necessary to avoid new contianer being created each time? No installation necessary, just prepend commands with `docker run kava/kava`. TODO name necessary to avoid new contianer being created each time?
@ -65,10 +64,9 @@ TODO users need to set up keys first?
kvd init --name <your-name> --chain-id kava-test-1 kvd init --name <your-name> --chain-id kava-test-1
This will generate config and keys in `$HOME/.kvd` and `$HOME/.kvcli`. This will generate config and keys in `$HOME/.kvd` and `$HOME/.kvcli`. The default password is 'password'.
The default password is 'password'.
Note: Make sure `GOBIN` is set and added to your path if you want to be able to run installed go programs from any folder. > Note: Make sure `GOBIN` is set and added to your path if you want to be able to run installed go programs from any folder.
Copy the testnet genesis file (from https://raw.githubusercontent.com/Kava-Labs/kava/master/testnets/kava-test-1/genesis.json) into `$HOME/.kvd/config/`, replacing the existing one. Copy the testnet genesis file (from https://raw.githubusercontent.com/Kava-Labs/kava/master/testnets/kava-test-1/genesis.json) into `$HOME/.kvd/config/`, replacing the existing one.
@ -78,6 +76,8 @@ Start your full node
kvd start kvd start
> Note: It might take a while to fully sync. Check the latest block height [here](http://validator.connector.kava.io:26657/abci_info).
## Run a Validator ## Run a Validator
Join the [validator chat](https://riot.im/app/#/room/#kava-validators:matrix.org). Follow setup for a full node above. Join the [validator chat](https://riot.im/app/#/room/#kava-validators:matrix.org). Follow setup for a full node above.
@ -88,7 +88,7 @@ Ask @rhuairahrighairidh in the chat to give you some coins.
Get your validator pubkey with `kvd tendermint show_validator` Get your validator pubkey with `kvd tendermint show_validator`
Then run Then, your full running in the background or separate window, run:
kvcli stake create-validator \ kvcli stake create-validator \
--amount 900KVA \ --amount 900KVA \
@ -97,8 +97,9 @@ Then run
--moniker "<your name>" \ --moniker "<your name>" \
--chain-id kava-test-1 \ --chain-id kava-test-1 \
--from <your name> --from <your name>
> Note You'll need to type in the default password "password"
Now you should be participating in consensus and validating blocks! Now your full node should be participating in consensus and validating blocks!
Running a validator requires that you keep validating blocks. If you stop, your stake will be slashed. Running a validator requires that you keep validating blocks. If you stop, your stake will be slashed.
In order to stop validating, first remove yourself as validator, then you can stop your node. In order to stop validating, first remove yourself as validator, then you can stop your node.