Prerequisites
- Subtensor lite node with
--pruning=2000configured
- Python 3.10+ installed
- pip/venv for isolated environment
- A funded coldkey/hotkey wallet with stake registered in Subnet 73
Simple setup
# clone repository
git clone https://github.com/fx-integral/metahash.git
# change directory
cd metahash
# create python virtual environment
python -m venv .venv && source .venv/bin/activate
# install uv
pip install -U pip wheel uv
# install requirements
uv pip install -e .
# configure .env
BT_WALLET_NAME=metahash
BT_HOTKEY=validatorx
IPFS_API_URL="http://ipfs.metahash73.com:5001/api/v0"
Create a wallet and register the hotkey
# create coldkey
btcli wallet new_coldkey --wallet.name metahash
# create hotkey
btcli wallet new_hotkey --wallet.name metahash --wallet.hotkey validatorx
# register hotkey
btcli register --netuid 73 --wallet.name metahash --wallet.hotkey validatorx
Run Validator (pm2)
pm2 start python \
--name metahash-validator \
-- neurons/validator.py \
--netuid 73 \
--subtensor.network archive \
--wallet.name metahash \
--wallet.hotkey validatorx \
--neuron.axon_off \
--logging.debug
Run Validator (python)
python neurons/validator.py \
--netuid 73 \
--subtensor.network archive \
--wallet.name metahash \
--wallet.hotkey validatorx \
--neuron.axon_off \
--logging.debug
For --subtensor.network you can use archive. However we recommend running your own subtensor node with --pruning=2000