From 9c5854c3adb946f25e5d66e31bb5ae0c3eaa4112 Mon Sep 17 00:00:00 2001 From: Peter Carlson Date: Tue, 14 Jan 2025 17:54:37 -0500 Subject: [PATCH 1/3] update Makefile to support finney --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index 802eb95..41e6b2a 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,6 @@ else ifeq ($(NETWORK),testnet) netuid = 256 else ifeq ($(NETWORK),finney) netuid = 55 - $(error Finney network not supported yet) endif metagraph: From d923a92ec18dc545d5c8b944415b0e5bd0668a9a Mon Sep 17 00:00:00 2001 From: Peter Carlson Date: Tue, 14 Jan 2025 18:01:09 -0500 Subject: [PATCH 2/3] add .env variable for local subtensor --- .env.miner.example | 4 ++++ .env.validator.example | 4 ++++ Makefile | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.env.miner.example b/.env.miner.example index bb42523..efd6644 100644 --- a/.env.miner.example +++ b/.env.miner.example @@ -18,3 +18,7 @@ FORWARD_FUNCTION=base_miner # Logging # Options: info, debug, trace LOGGING_LEVEL=debug + +# Local Subtensor Configuration +# Only used if you run your own subtensor node +LOCALNET=ws://127.0.0.1:9945 diff --git a/.env.validator.example b/.env.validator.example index c81f7ba..413807c 100644 --- a/.env.validator.example +++ b/.env.validator.example @@ -13,3 +13,7 @@ VALIDATOR_PORT=8091 # Logging # Options: info, debug, trace LOGGING_LEVEL=debug + +# Local Subtensor Configuration +# Only used if you run your own subtensor node +LOCALNET=ws://127.0.0.1:9945 diff --git a/Makefile b/Makefile index 41e6b2a..070b268 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ export finney = wss://entrypoint-finney.opentensor.ai:443 testnet = wss://test.finney.opentensor.ai:443 -localnet = ws://127.0.0.1:9945 +localnet = $(LOCALNET) ifeq ($(NETWORK),localnet) netuid = 1 From 583f28e3315fbb78a24ec7acda120e86842d649c Mon Sep 17 00:00:00 2001 From: Peter Carlson Date: Tue, 14 Jan 2025 18:13:30 -0500 Subject: [PATCH 3/3] netuid 55 for localnet --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 070b268..09dcc8f 100644 --- a/Makefile +++ b/Makefile @@ -3,14 +3,15 @@ export finney = wss://entrypoint-finney.opentensor.ai:443 testnet = wss://test.finney.opentensor.ai:443 -localnet = $(LOCALNET) +localnet = ws://127.0.0.1:9945 ifeq ($(NETWORK),localnet) - netuid = 1 + netuid = 55 else ifeq ($(NETWORK),testnet) netuid = 256 else ifeq ($(NETWORK),finney) netuid = 55 + $(error Finney network not supported yet) endif metagraph: