KiiChain

KiiChain node guide documentation

Kiichain Validator Node Setup Guide with Cosmovisor

This guide walks you through the process of setting up a Kiichain validator node on Testnet Oro using cosmovisor for seamless chain upgrades.


Requirements

  • Golang: v1.21.x or v1.22.x (Golang v1.23.x or higher will cause compilation errors)

  • Build Tools: build-essential package (for Linux)


1. Install Kiichain CLI

Clone the repository and build the binary:

git clone https://github.com/KiiChain/kiichain.git
cd kiichain
make install

Verify the installation:

kiichaind version

2. Join the Testnet

You have two options to bootstrap your node:

a. Standard Full Node


3. Initial Node Configuration

a. Backup and Clean Existing Configurations

b. Set Environment Variables

c. Initialize the Node

d. Set Persistent Peers

e. Enable Database Features and Increase Concurrency

f. Download and Set the Genesis File

(Optional) Verify the genesis file's SHA256 checksum:

Expected SHA256: e22442f19149db7658bcf777d086b52b38d834ea17010c313cd8aece137b647a


4. Configure as Validator Node

Change the node mode from full node to validator:


5. (Optional) Setup State Sync

State sync speeds up synchronization by downloading recent state data.

a. Determine Sync Block Height

b. Get the Sync Block Hash

c. Update the config.toml for State Sync


6. Start the Node

Run your Kiichain node:


7. Create and Register Your Validator

a. Create a New Key

Generate a key for transactions:

Keep the mnemonic safe—it is required for account recovery.

b. Get Your Validator Public Key

c. Create the Validator

Replace <your-moniker> and $VALIDATOR_KEY_NAME with your values:

This transaction must be sent from the machine running your node.


8. (Optional) Configure as an Archival Node

If you wish to save all historical states, update the pruning setting in $NODE_HOME/config/config.toml:

Other pruning options include default, everything, and custom.


9. Cosmovisor Upgrade Management

Cosmovisor is used to manage automatic chain upgrades. The cosmovisor bootstrap script (join_oro_cv.sh) already sets up your node for automated upgrades.

Adding a New Upgrade

  1. Compile the new binary (ensure it is built on the correct upgrade tag, e.g., v1.0.1 or v2.0.0).

  2. Verify the binary version:

  3. Add the upgrade:

    • <upgrade-name>: The on-chain upgrade name.

    • <path-to-binary>: Full path to the new binary (e.g., /home/ubuntu/kiichain/build/kiichaind).


Final Notes

  • System Requirements: Recommended specs are 16 vCPU, 64 GB RAM, and 1 TB NVME SSD for optimal performance.

  • Monitoring: Regularly monitor your node and review logs to troubleshoot issues.

  • Documentation: For additional details, consult the official Kiichain and Cosmos validator documentation.


Happy validating!

Last updated