Setup Validator Node
This guide will walk you through setting up a validator node on the Ditto Network. You can choose between running the node directly on your system or using Docker.Systemd Setup
Docker Setup
Systemd Unit Setup
All commands in this section should be executed as the root user.Prerequisites
- Linux debian-based
- Root access to your system
You need to enter the validator’s private key in hex format.
- Create user:
- Grant sudo:
- Switch to user:
- Then run this script with sudo
- Downloads and installs the keplerd binary
- Initializes the node configuration in your home directory
- Configures the node with proper gas prices and seeds
- Sets your private validator key
- Downloads the genesis file
- Sets up and starts a systemd service
Look for logs where
height= keeps increasing, which indicates successful syncing with the network:Running as a Docker Container
Prerequisites
- Docker installed
- Docker Compose installed
Configuration
- Create the working directory structure:
- Create a temporary container to generate configuration:
-
Set up your validator key in
config/priv_validator_key.json -
Configure
./config/app.toml:
- Configure
./config/config.toml:
- Download the genesis file:
- Create
docker-compose.yml:
- Start the node:
- Monitor the logs:
Ensure logs show increasing
height= values, indicating successful network synchronization:Checking Synchronization Status
To verify your node’s synchronization status, run:Make sure your node is fully synchronized before proceeding with any validator operations.