Skip to content

Commit

Permalink
add .env variable for local subtensor
Browse files Browse the repository at this point in the history
  • Loading branch information
peterc-yuma committed Jan 14, 2025
1 parent 9c5854c commit d923a92
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .env.miner.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions .env.validator.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d923a92

Please sign in to comment.