1.2 Quickstart: Miner
Get a C-SWON miner running on testnet in 5 steps.
Step 1 — Clone and Install
git clone https://github.com/adysingh5711/C-SWON.git
cd C-SWON
pip install -r requirements.txt
pip install -e .
Step 2 — Create Wallet
btcli wallet new_coldkey --wallet.name my_miner
btcli wallet new_hotkey --wallet.name my_miner --wallet.hotkey default
Step 3 — Register on the Subnet
btcli subnet register \
--netuid <netuid> \
--wallet.name my_miner \
--wallet.hotkey default \
--subtensor.network test
Step 4 — Run the Miner
python neurons/miner.py \
--netuid <netuid> \
--wallet.name my_miner \
--wallet.hotkey default \
--axon.port 8091 \
--subtensor.network test \
--wandb.off
Step 5 — Verify
btcli subnet metagraph --netuid <netuid> --subtensor.network test
# Confirm your UID appears and axon IP:port is visible
Expected Behaviour
- Immediately after registration:
trust = 0,emission = 0. This is normal. - After first few tempos:
incentiveandemissionwill begin to appear once validators query and score your workflows. - Immunity period: 5,000 blocks (~16.7 hours) — you cannot be deregistered during this window.
Common Errors
| Error | Cause | Fix |
|---|---|---|
Axon not reachable | Port not open externally | Open port 8091 in firewall |
vtrust = 0.0 after 10 tempos | Weights not accepted | Check set_weights() return value |
| Docker permission denied | Docker daemon not accessible | sudo usermod -aG docker $USER && newgrp docker |
Navigation
| ← Previous | 1.1 What is C-SWON? |
| → Next | 1.3 Quickstart: Validator |
| Index | Documentation Index |
| Repository | github.com/adysingh5711/C-SWON |