Run a Validator Node
Requirements
Linux Instance
OS - Ubuntu 22.04 or a higher version
Specifications
CPU
4 Core
8 Core
RAM
16 GB
32 GB
Disk
SSD 1 TB
SSD 1 TB 8,000 IOPS
250 MB/s throughput
Read latency < 1 ms
Network
> 5 MB/s
> 50 MB/s
Using a system with minimum specifications increases the risk of reaching full memory capacity, which may lead to slashing. Ensure you have enough memory and specifications to support the network data.
Allowed Inbound and Outbound
Protocol - TCP and UDP
Port - 30303
Source IP - 0.0.0.0/0
Installation
Create a new directory for your validator node
mkdir -p kub-node && cd kub-nodeDownload the Genesis file and the configuration file using wget
wget https://raw.githubusercontent.com/kub-chain/bkc-node/main/mainnet/genesis.json
wget https://raw.githubusercontent.com/kub-chain/bkc-node/main/mainnet/config.tomlDownload the latest release; the current version is v2.3.0
wget https://github.com/kub-chain/bkc/releases/download/v2.3.0-bkc/geth2.2.0.darwin-arm64.tar.gzVerify that the downloaded version is compatible with your device. KUB supports Darwin ARM64, Linux x86-64, and Linux ARM64. Visit the latest release page to view the available versions under the assets section.
Extract the downloaded file
tar -xvf geth2.3.0.darwin-arm64.tar.gzSet the password, replace YourPassword with your password
echo "YourPassword" > ./password.secCreate a new validator account
./geth --datadir ./data account new --password ./password.secInitialize the Genesis file
./geth --datadir ./data init ./genesis.jsonRun geth using the following command and replace 0xYourPublicAddress with your public address retrieved in the earlier steps
./geth --datadir ./data \
--config ./config.toml --password ./password.sec \
--syncmode snap \
--mine \
--unlock 0xYourPublicAddress --allow-insecure-unlock Please allow some time for your system to download and sync the network data.
Validator Staking
After successfully installing your node configuration on your system, please proceed to the next steps. Staking involves depositing the KUB Coin to activate the validator.
Last updated