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
Note
Requires python3.10
- Clone project
git clone https://github.com/nakamoto-ai/zangief
- Create virtual environment
cd zangief
python -m venv venv
source venv/bin/activate
- Install dependencies
python -m pip install -r validator_requirements.txt
python -m pip install -e .
- Register the validator
comx module register <name> <your_commune_key> --netuid 1
- Set the
.env
file
Copy the example template:
cp .env.example .env
Then insert your key name into the KEY_NAME
value.
- 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"
- (Optional) Setting custom
.env
file path.
When running, add the cli argument --env <your-env-file>
- (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
- Register the validator on the testnet
comx --testnet module register <name> <your_commune_key> --netuid 23
- 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
.
- Run the validator
cd ~/zangief
python src/zangief/validator/validator.py