-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
47 lines (38 loc) · 1.25 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
include $(ENV_FILE)
export
finney = wss://entrypoint-finney.opentensor.ai:443
testnet = wss://test.finney.opentensor.ai:443
localnet = $(LOCALNET)
ifeq ($(NETWORK),localnet)
netuid = 55
else ifeq ($(NETWORK),testnet)
netuid = 256
else ifeq ($(NETWORK),finney)
netuid = 55
endif
metagraph:
btcli subnet metagraph --netuid $(netuid) --subtensor.chain_endpoint $($(NETWORK))
register:
{ \
read -p 'Wallet name?: ' wallet_name ;\
read -p 'Hotkey?: ' hotkey_name ;\
btcli subnet register --netuid $(netuid) --wallet.name "$$wallet_name" --wallet.hotkey "$$hotkey_name" --subtensor.chain_endpoint $($(NETWORK)) ;\
}
miner:
pm2 start --name $(MINER_NAME) python3 -- precog/miners/miner.py \
--neuron.name $(MINER_NAME) \
--wallet.name $(COLDKEY) \
--wallet.hotkey $(MINER_HOTKEY) \
--subtensor.chain_endpoint $($(NETWORK)) \
--axon.port $(MINER_PORT) \
--netuid $(netuid) \
--logging.level $(LOGGING_LEVEL) \
--timeout $(TIMEOUT) \
--vpermit_tao_limit $(VPERMIT_TAO_LIMIT) \
--forward_function $(FORWARD_FUNCTION) \
validator:
# Delete pm2 processes if they're already running
bash ./precog/validators/scripts/pm2_del.sh
# Generate the pm2 config file
bash ./precog/validators/scripts/create_pm2_config.sh
pm2 start app.config.js