Validating on Testnet
Before creating a testnet validator, ensure you have first followed the instructions on running the testnet node.
Create Wallet If you decided to participate in the validator set, you will first need a wallet added to your node. You can create a wallet with following command (Replace validator with a name of your choosing):
fairyringd keys add validatorEnsure you write down the mnemonic as you can not recover the wallet without it. To ensure the wallet you created was saved to your node, run the following command to see if your wallet is in the list:
fairyringd keys listCreate validator command Make sure that your wallet has enough tokens to become validator. You may check your balance by the following command (Replace ADDRESS with the wallet address you just created):
fairyringd q bank balances ADDRESSHere is the command for creating a validator:
fairyringd tx staking create-validator \
--amount `10000000000ufairy` \
--commission-max-change-rate 0.01 \
--commission-max-rate 0.2 \
--commission-rate 0.1 \
--from [ACCOUNT_KEY_NAME] \
--min-self-delegation 1 \
--moniker [validator_moniker] \
--security-contact "[optional-security@example.com]" \
--website [optional.web.page.com] \
--details [optional-details] \
--pubkey $(fairyringd tendermint show-validator) \
--chain-id fairyring-testnet-1Explanation for each of the command flags:
If you are joining the validator set after the genesis creation, that will be all you need to do.
If you are joining the validator set before the genesis creation, here is the steps on creating the gentx:
Create Gentx Create a genesis transaction to become validator:
If you would like to know the explanation on each of flags, please see the explanation above.
After running the command above, it will create a gentx-XXXXXX.json file under this directory:
Copy the contents inside $HOME/.fairyring/config/gentx/gentx-XXXXXX.json to fairyring/gentxs/ directory (replace VALIDATOR_NAME to your validator name):
Create a json file with all your node information like the example below, and name it peers-VALIDATOR_NAME.json (replace VALIDATOR_NAME to your validator name)
You can get your node_id by the following command:
You can get your public_ip by the following command:
For your port, the default is 26656 if you did not change the config.
After creating the file, put it under $HOME/fairyring/networks/testnets/fairyring-testnet-1/peers/ directory
Create a new branch with the peers & gentx files, make a commit and push the update to Github.
Create a Pull Request to the main branch on fairyring repo
Last updated