From d923a92ec18dc545d5c8b944415b0e5bd0668a9a Mon Sep 17 00:00:00 2001 From: Peter Carlson Date: Tue, 14 Jan 2025 18:01:09 -0500 Subject: [PATCH] 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