Cherry
Search…
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.
curl https://sh.rustup.rs -sSf | sh -s -- -y
To configure your shell, run the following command.
source $HOME/.cargo/env
Finally, run this command to install the necessary dependencies for compiling and running the Cherry Node.
sudo apt update && sudo apt install -y git build-essential clang pkg-config curl libssl-dev llvm libudev-dev
rustup default stable
rustup update
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly

Building the Cherry binary

# Clone the Cherry-Node GitHub Repository
git clone https://github.com/CherryNetwork/Cherry-Node.git
cd Cherry-Node
# Always build from master branch
cargo build --release

Running the Cherry binary

If 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 cherry-mainnet -y

Mainnet:

./target/release/cherry --chain cherry-mainnet
--name "<insert a name of your choice for you validator>"
--bootnodes /ip4/15.236.154.200/tcp/30333/p2p/12D3KooWC3UYsfPTpBvDr5oqc8CRe2jftT5kaVYpfhYojjLT4HWB
--validator --base-path=/tmp/cherry-mainnet
--telemetry-url "wss://telemetry.polkadot.io/submit/ 0"

Testnet:

./target/release/cherry --chain cherry-testnet \
--name "<insert a name of your choice for you validator>"
--bootnodes /ip4/13.38.120.202/tcp/30333/p2p/12D3KooWLPZqAGQ81UFuXWxLCVMBsZ58MWNp19LZSJEpkrWfktkn \
--telemetry-url "wss://telemetry.polkadot.io/submit/ 0" \
--validator

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):
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://localhost:9933
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 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 NetworkStakingAccount Actions+Validator
Select your Stash & Controller
Add your keys from the Generating the Session Keys section in the keys from rotateKeys
Finally select Bond & Validate
Copy link
On this page
Preliminaries
Initial Set-up
Requirements
Generating the Session Keys
Setup Validator Accounts
Setup Validators