This repository is for validator of RedTeam subnet. it is focused on running validator node in an independent, easy to configure, dockerized way with docker compose support. Additionally, it includes additional helper container to automatically update and restart validator image when new version is released.
- Validator node
- Automatic updates
- Easy configuration
- Dockerized setup
- Docker Compose support
- Prepare validator wallet (skip if you already have one):
- Install Bittensor CLI:
- Create miner wallet:
- Stake TAO with validator wallet on RedTeam subnet:
- Register validator wallet to RedTeam subnet:
- Install docker and docker compose
- Docker intstallation script
- Docker post-installation steps
2.1. Prepare projects directory (if not exists):
# Create projects directory:
mkdir -pv ~/workspaces/projects
# Enter into projects directory:
cd ~/workspaces/projects2.2. Follow one of the below options [A] or [B]:
OPTION A. Clone the repository:
git clone https://github.com/RedTeamSubnet/validator.git && \
cd validatorOPTION B. Download source code:
- Download archived zip or tar.gz file from releases.
- Extract it into the projects directory.
- Enter into the extracted project directory.
[NOTE] Please, check environment variables section for more details.
[IMPORTANT] Make sure to change the wallet directory and wallet name variables to your own values in the .env file:
# Copy '.env.example' file to '.env' file:
cp -v ./.env.example ./.env
# Edit environment variables to fit in your environment:
nano ./.env## Check docker compose configuration is valid:
./compose.sh validate
# Or:
docker compose config## Start docker compose:
./compose.sh start -l
# Or:
docker compose up -d --remove-orphans --force-recreate && \
docker compose logs -f --tail 100## --- Environment variable --- ##
ENV=PRODUCTION
DEBUG=false
# TZ=UTC
# PYTHONDONTWRITEBYTECODE=1
## -- Bittensor configs -- ##
# RT_BT_SUBTENSOR_NETWORK="wss://entrypoint-finney.opentensor.ai:443"
## -- Subnet configs -- ##
# ! WARNING: Do not use `~` character, it will not be expand properly! Use absolute path or ${HOME} instead:
RT_BTCLI_WALLET_DIR="${HOME}/.bittensor/wallets" # !!! CHANGE THIS TO REAL WALLET DIRECTORY !!!
# RT_BT_SUBNET_NETUID=61
## -- Validator configs -- ##
RT_VALIDATOR_WALLET_NAME="validator" # !!! CHANGE THIS TO REAL VALIDATOR WALLET NAME !!!
RT_VALIDATOR_HOTKEY_NAME="default" # !!! CHANGE THIS TO REAL VALIDATOR HOTKEY NAME !!!
# RT_VALIDATOR_LOGS_DIR="/var/log/agent-validator"
# RT_VALIDATOR_DATA_DIR="/var/lib/agent-validator"
# RT_VALIDATOR_USE_CENTRALIZED_SCORING=true- Bittensor docs: https://docs.learnbittensor.org
- Bittensor CLI: https://docs.learnbittensor.org/btcli
- Bittensor CLI GitHub: https://github.com/opentensor/btcli
- Bittensor CLI PyPI: https://pypi.org/project/bittensor-cli
- The RedTeam subnet: https://www.theredteam.io