Anatha Validator Guide
Infrastructure
Recommended configuration:
Number of CPUs: 2
Memory: 8GB
Disk: 250GB SSD
OS: Ubuntu 20.04 LTS
Allow all incoming connections from TCP port 26656 and 26657
Static IP address
The recommended configuration from AWS is the equivalent of a t3.large machine with 250GB EBS attached storage.
Prerequisites
Update the system and install dependencies:
sudo apt update
sudo apt upgrade -y
sudo apt install build-essential jq -yInstall Golang:
# Install latest go version https://golang.org/doc/install
wget -q -O - https://raw.githubusercontent.com/canha/golang-tools-install-script/master/goinstall.sh | bash -s -- --version 1.15.3
source ~/.profileTo verify that Golang is installed:
Running a Validator Node
Install the executables
Initialize the validator
Set up your keys
Create the upgrade manager directory structure
Copy the genesis binary to the upgrade manager
Verify that the binary has been copied
Fetch the genesis file
Create the service file with the following content
If you are not logged in as the ubuntu user and/or if your home directory is not /home/ubuntu, please change the User, Group, Environment, and ExecStart variables in the service config above appropriately.
Start the Daemon service
To check on the status of the node use:
To view the logs use:
Applying for being a validator
Verify the node is in the validator list
Recovering From a Slashing Infraction
First, you need to verify the state of your validator by running:
The response would be similar to the following:
As you can see the jailed status is set to true and the delegation tokens are below the needed amount. You need to perform top up your token balance and send an unjail transaction.
To check when is the earliest time the validator can be unjailed run:
The response will return the jailed_until parameter in the UTC time zone:
To top up your validator balance, run:
To unjail your validator run:
Stopping a Validator Node
To gracefully shutdown a validator node which is in the active validator set, the operator must first unbond their tokens before being able to shut down the node and withdraw their stake.
After running the unbonding transaction, you need to check the length of the unbonding time by running:
After that period of time, your stake will be returned to your account. During the unbounding period, you can be slashed for any infraction that happened before the unbonding transaction.
As soon as you run the unbond transaction, you are free to shut down your validator node.
Last updated
Was this helpful?