Running a Validator or RPC Node
This guide will instruct you how to set up a CLV validator node on CLV networks (Testnet/Sakura/Mainnet).
π Must Read Before Startβ¦
Running a validator is a serious thing, you have a lot of responsibility for the staked tokens of you and nominators. You take the risk of losing your staked tokens, as a slash might happen if your validator node is not properly configured. Please make sure you or your team have the necessary knowledge to run a validator node.
Polkadot Wiki has an awesome introduction of running a validator node on the Polkadot network. As a member of the Polkadot ecosystem, CLV follows the similar process to run and set up a validator node. We may skip some basics steps in this tutorial.
π οΈ Hardware Requirements
CPU - Recent released high-end CPU, e.g., Intel Core i7-10700/AMD Ryzen 7 5800X or above
Memory - 32 GB for Testnet, 64 GB for Sakura and Mainnet.
Storage - 300 GB SSD, Storage usage could increase by time, you might need to increase the capacity as the chain data grows.
OS: Linux, Debian/Ubuntu LTS distributions are recommended.
π§ Prepare Environment
We'll use docker and docker-compose to run the validator in this guide. You need to install docker and docker-compose firstly. Please follow the installation guide in the docs.
We're using docker to simplify the setup process. You can use the tools which you're familiar with.
π°οΈ Firewall Setup
Below ports need to be exposed:
30333 - The p2p port of the chain
π Create Directories
Create the config and data directories using the below command:
βοΈ Setup CLV Validator Node
Currently, we only have CLV Testnet (iris) and CLV Mainnet (ivy) launched. CLV Testnet opens for validators to join. CLV Mainnet operates in the POA mode and maintained by 6 nodes belongs to CLV foundation.
Validator Configuration for CLV Mainnet will be updated later once it's ready for staking and validators can join.
π Create the Compose configure file
Create /opt/compose/docker-compose.yaml
and set the content as below:
You can edit the docker-compose.yaml
and include your customizations by updating below arguments:
image: the docker image used to launch the node, for CLV mainnet, use
cloverio/clover-ivy:0.1.16.
For a full list of clover networks please check out the CLV Network List page.--name: The node name of your validator, the name could be found in the telemetry node list.
--unsafe-rpc-external: You might need this flag to call the
author_rotateKeys
api, make sure to remove this flag later on for better security.Ensure enable the
--exeuction wasm
flag, This is required for all validator nodes.
π Bring up the validator node
Use below command to bring up the validator node:
You need to check the node logs using docker-compose logs
command. Wait until the node is synced and the block numbers syncs with the latest number on the chain.
πΉ Bond CLV
Checkout Staking documentation.
ποΈ Set the session keys
Checkout Polkadot Session Keys documentation.
π Validate
Checkout Polkadot Validate documentation.
π± Links
Docker Compose file templates
Below are several docker compose file templates for ClV networks.
Last updated