Loading
Loading

This information was auto-extracted from the GitHub repository and may be incomplete or out of date. Always refer to the subnet's GitHub repository for the latest instructions.
Miners consist of a docker container and a pm2-managed neuron process. Must run alongside a federated container for VPN coordination.
Validators require both a neuron process and docker container. More resource-intensive than miners.
Install system dependencies including git, docker prerequisites, wireguard, nodejs, npm, and python
sudo apt update && sudo apt install -y git jq netcat-openbsd wireguard wireguard-tools nodejs npm python3 python3-venv python3-pip
Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh
Add current user to docker group for rootless operation
sudo usermod -aG docker $USER && newgrp docker
Install PM2 for process management
npm install -g pm2
Clone the TPN subnet repository
cd ~ && git clone https://github.com/taofu-labs/tpn-subnet.git
Create virtual environment and install Python dependencies
cd ~/tpn-subnet && python3 -m venv venv && source venv/bin/activate && pip3 install -r requirements.txt
Copy environment template and configure with IP2Location and MaxMind API keys, wallet address, mining pool settings
cd ~/tpn-subnet/federated-container && cp .env.miner.example .env && nano .env
Generate coldkey and hotkey for the miner (or copy existing keys to ~/.bittensor)
btcli w new_coldkey --wallet.name tpn_coldkey && btcli w new_hotkey --wallet.name tpn_coldkey --wallet.hotkey tpn_hotkey
Register miner on subnet 65 (mainnet) or 279 (testnet)
btcli s register --wallet.name tpn_coldkey --hotkey tpn_hotkey --netuid 65
Start miner neuron with pm2
export PYTHONPATH=. && source venv/bin/activate && pm2 start "python3 ~/tpn-subnet/neurons/miner.py --netuid 65 --subtensor.network finney --wallet.name tpn_coldkey --wallet.hotkey tpn_hotkey --logging.info --axon.port 8091 --blacklist.force_validator_permit" --name tpn_miner
Start docker compose for the miner container
bash ~/tpn-subnet/scripts/update_node.sh
Install system dependencies
sudo apt update && sudo apt install -y git jq netcat-openbsd wireguard wireguard-tools nodejs npm python3 python3-venv python3-pip
Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh
Add current user to docker group
sudo usermod -aG docker $USER && newgrp docker
Install PM2
npm install -g pm2
Clone TPN subnet repository
cd ~ && git clone https://github.com/taofu-labs/tpn-subnet.git
Create virtual environment and install Python dependencies
cd ~/tpn-subnet && python3 -m venv venv && source venv/bin/activate && pip3 install -r requirements.txt
Configure environment with IP2Location and MaxMind API keys
cd ~/tpn-subnet/federated-container && cp .env.validator.example .env && nano .env
Generate coldkey and hotkey (or copy existing)
btcli w new_coldkey --wallet.name tpn_coldkey && btcli w new_hotkey --wallet.name tpn_coldkey --wallet.hotkey tpn_hotkey
Register validator on subnet
btcli s register --wallet.name tpn_coldkey --hotkey tpn_hotkey --netuid 65
Start validator neuron with pm2
export PYTHONPATH=. && source venv/bin/activate && pm2 start "python3 ~/tpn-subnet/neurons/validator.py --netuid 65 --subtensor.network finney --wallet.name tpn_coldkey --wallet.hotkey tpn_hotkey --logging.info --axon.port 9000 --neuron.vpermit 10000 --force_validator_permit" --name tpn_validator
Start docker compose for validator container
bash ~/tpn-subnet/scripts/update_node.sh