Become a Validator
Preliminaries
Running a validator on a live network is a lot of responsibility! You will be accountable for not only your own stake, but also the stake of your current nominators. If you make a mistake and get slashed, your money and your reputation will be at risk. However, running a validator can also be very rewarding, knowing that you contribute to the security of a decentralized network while growing your stash.
Warning: It is highly recommended that you have significant system administration experience before attempting to run your own validator.
Initial Set-up
Requirements
The most common way for a beginner to run a validator is on a cloud server running Linux. You may choose whatever VPS provider that your prefer, and whatever operating system you are comfortable with. For this guide we will be using Ubuntu 18.04, but the instructions should be similar for other platforms.
Note Prerequisites: Install Rust & Dependencies
This command will fetch the latest version of Rust and install it.
To configure your shell, run the following command.
Finally, run this command to install the necessary dependencies for compiling and running the Cherry Node.
Building the Cherry
binary
Cherry
binaryRunning the Cherry
binary
Cherry
binaryIf you were running a node previously(especially if the node was not a validator) run the following for purging the previous chain: ./target/release/cherry purge-chain --chain node/service/chain-specs/mainnet-relay-regenesis.json -y
on Mainnet or ./target/release/cherry purge-chain --chain cherry-testnet -y
on Testnet
1. Mainnet
Methods:
Binary:
Docker
2. Testnet
Methods:
Binary
Docker
Generating the Session Keys
You need to tell the chain your Session keys by signing and submitting an extrinsic. This is what associates your validator node with your Controller account on Cherry.
Since you’re using a remote server, it is easier to run this command on the same machine (while the node is running):
The output will have a hex-encoded “result” field. The result is the concatenation of the four public keys. Save this result for a later step.
You can restart your node at this point. Simply be pressing Ctrl-C(or docker restart if running via docker) and type the same command from Running the cherry
binary section.
Setup Validator Accounts
Open https://cherry.place/#/explorer in your browser
Navigate to Accounts → Add Account
and create two accounts, one for your Controller and one for your Stash.
Setup Validators
Navigate to Network → Staking → Account Actions → +Validator
Select your Stash & Controller
Add your keys from the Generating the Session Keys in the Keys from rotateKeys
field
Finally select Bond & Validate
Last updated