Skip to content

Latest commit

 

History

History
105 lines (67 loc) · 1.96 KB

validators.md

File metadata and controls

105 lines (67 loc) · 1.96 KB

ZANGIEF

Validator Documentation

Hardware Requirements

Minimum Requirements

CPU: Quad-core Intel i3 or equivalent AMD processor, 2.5 GHz
RAM: 2 GB
Storage: 2 GB
GPU: Not needed
Network: Broadband internet connection for online data syncing

Recommended Requirements

CPU: 4-core Intel i5 or equivalent AMD processor, 2.5 GHz-3.5 GHz
RAM: 4 GB or more
Storage: 10 GB SSD
GPU: Not needed
Network: Gigabit Ethernet or better

How to Run a Validator

Note

Requires python3.10

  1. Clone project

git clone https://github.com/nakamoto-ai/zangief

  1. Create virtual environment
cd zangief
python -m venv venv
source venv/bin/activate
  1. Install dependencies
python -m pip install -r validator_requirements.txt
python -m pip install -e .
  1. Register the validator

comx module register <name> <your_commune_key> --netuid 1

  1. Set the .env file

Copy the example template:

cp .env.example .env

Then insert your key name into the KEY_NAME value.

  1. Run the validator
python src/zangief/validator/validator.py

(Optional) Run with pm2

sudo apt install jq -y && sudo apt install npm -y && sudo npm install pm2 -g && pm2 update
pm2 start --name zangief-vali "python src/zangief/validator/validator.py"
  1. (Optional) Setting custom .env file path.

When running, add the cli argument --env <your-env-file>

  1. (Optional) Ignore the .env file.

When running, add the cli argument --ignore-env-file and the validator will use the environment values already set on the system.

(Optional) Run on testnet

  1. Register the validator on the testnet

comx --testnet module register <name> <your_commune_key> --netuid 23

  1. Set the .env file

Copy the example template:

cp .env.example .env

Then insert your key name into the KEY_NAME value, and set TESTNET=1.

  1. Run the validator
cd ~/zangief
python src/zangief/validator/validator.py