Update the config.toml with the seed node and the peers for the MANTRA Hongbai Chain (Testnet).
CONFIG_TOML="$HOME/.mantrachain/config/config.toml"
SEEDS="d6016af7cb20cf1905bd61468f6a61decb3fd7c0@34.72.142.50:26656"
PEERS="da061f404690c5b6b19dd85d40fefde1fecf406c@34.68.19.19:26656,20db08acbcac9b7114839e63539da2802b848982@34.72.148.3:26656"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $CONFIG_TOML
sed -i.bak -e "s/^seeds =.*/seeds = \"$SEEDS\"/" $CONFIG_TOML
external_address=$(wget -qO- eth0.me)
sed -i.bak -e "s/^external_address *=.*/external_address = \"$external_address:26656\"/" $CONFIG_TOML
sed -i 's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.0002uom"|g' $CONFIG_TOML
sed -i 's|^prometheus *=.*|prometheus = true|' $CONFIG_TOML
sed -i -e "s/^filter_peers *=.*/filter_peers = \"true\"/" $CONFIG_TOML
Install Cosmovisor
cosmovisor is a process manager for Cosmos SDK application binaries that automates application binary switch at chain upgrades.
It polls the upgrade-info.json file that is created by the x/upgrade module at upgrade height, and then can automatically download the new binary, stop the current binary, switch from the old binary to the new one, and finally restart the node with the new binary.
The systemd service manager allows the mantrachaind binary to run as a service, instead of as a command-line application. (See https://systemd.io for more information.)
Once started, the node will take some time to sync with the blockchain. Upon Node synced, we can start to create validator
Create a MANTRA Chain account
Create your mantrachain account if you don't have one already. It will be used to operate your validator node. You can, either, create a new account or import an existing account.
Create keys
Create a key file.
mantrachaind config keyring-backend file
Generate a new public key with mnemonic phrase.
mantrachaind keys add wallet
Check balance:
mantrachaind q bank balances $(mantrachaind keys show wallet -a)
KEEP THE MNEMONIC PHRASE IN A SAFE PLACE!
Execute "create-validator" transaction.
You can create new validator from the public key of your node with the following command:
Change your Moniker
Remember: validator's self delegation must be greater than their minimum self delegation