-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from coinmetrics/staging
Master Release v0.3.0
- Loading branch information
Showing
14 changed files
with
778 additions
and
662 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Network Configuration | ||
NETWORK=localnet # Options: localnet, testnet, finney | ||
|
||
# Wallet Configuration | ||
COLDKEY=miner | ||
MINER_HOTKEY=default | ||
|
||
# Node Configuration | ||
MINER_NAME=miner | ||
MINER_PORT=8092 | ||
AXON_IP=127.0.0.1 | ||
AXON_EXTERNAL_IP=127.0.0.1 | ||
|
||
# Miner Settings | ||
TIMEOUT=16 | ||
VPERMIT_TAO_LIMIT=2 | ||
FORWARD_FUNCTION=base_miner | ||
|
||
# Logging | ||
LOGGING_LEVEL=info # Options: info, debug, trace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Network Configuration | ||
NETWORK=testnet # Options: localnet, testnet, finney | ||
|
||
# Wallet Configuration | ||
COLDKEY=validator | ||
VALIDATOR_HOTKEY=default | ||
|
||
# Node Configuration | ||
VALIDATOR_NAME=validator | ||
VALIDATOR_PORT=8091 | ||
AXON_IP=127.0.0.1 | ||
AXON_EXTERNAL_IP=127.0.0.1 | ||
|
||
# Logging | ||
LOGGING_LEVEL=info # Options: info, debug, trace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,54 @@ | ||
################################################################################ | ||
# User Parameters # | ||
################################################################################ | ||
coldkey = default | ||
validator_hotkey = validator | ||
miner_hotkey = miner | ||
netuid = $(testnet_netuid) | ||
network = $(testnet) | ||
ENV_FILE ?= .env | ||
|
||
include $(ENV_FILE) | ||
export | ||
|
||
################################################################################ | ||
# Network Parameters # | ||
################################################################################ | ||
finney = wss://entrypoint-finney.opentensor.ai:443 | ||
testnet = wss://test.finney.opentensor.ai:443 | ||
locanet = ws://127.0.0.1:9944 | ||
localnet = ws://127.0.0.1:9945 | ||
|
||
testnet_netuid = 256 | ||
localnet_netuid = 1 | ||
logging_level = info # options= ['info', 'debug', 'trace'] | ||
|
||
|
||
################################################################################ | ||
# Commands # | ||
################################################################################ | ||
ifeq ($(NETWORK),localnet) | ||
netuid = 1 | ||
else ifeq ($(NETWORK),testnet) | ||
netuid = 256 | ||
else ifeq ($(NETWORK),finney) | ||
#netuid = 64 | ||
$(error Finney network not supported yet) | ||
endif | ||
|
||
metagraph: | ||
btcli subnet metagraph --netuid $(netuid) --subtensor.chain_endpoint $(network) | ||
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) ;\ | ||
btcli subnet register --netuid $(netuid) --wallet.name "$$wallet_name" --wallet.hotkey "$$hotkey_name" --subtensor.chain_endpoint $($(NETWORK)) ;\ | ||
} | ||
|
||
validator: | ||
python start_validator.py \ | ||
--neuron.name validator \ | ||
--wallet.name $(coldkey) \ | ||
--wallet.hotkey $(validator_hotkey) \ | ||
--subtensor.chain_endpoint $(network) \ | ||
--axon.port 8091 \ | ||
--neuron.name $(VALIDATOR_NAME) \ | ||
--wallet.name $(COLDKEY) \ | ||
--wallet.hotkey $(VALIDATOR_HOTKEY) \ | ||
--subtensor.chain_endpoint $($(NETWORK)) \ | ||
--axon.port $(VALIDATOR_PORT) \ | ||
--axon.ip $(AXON_IP) \ | ||
--axon.external_ip $(AXON_EXTERNAL_IP) \ | ||
--netuid $(netuid) \ | ||
--logging.level $(logging_level) | ||
--logging.level $(LOGGING_LEVEL) | ||
|
||
miner: | ||
python start_miner.py \ | ||
--neuron.name miner \ | ||
--wallet.name $(coldkey) \ | ||
--wallet.hotkey $(miner_hotkey) \ | ||
--subtensor.chain_endpoint $(network) \ | ||
--axon.port 8092 \ | ||
--netuid $(netuid) \ | ||
--logging.level $(logging_level) \ | ||
--timeout 16 \ | ||
--vpermit_tao_limit 2 \ | ||
--forward_function base_miner | ||
|
||
custom_miner: | ||
python start_miner.py \ | ||
--neuron.name custom_miner \ | ||
--wallet.name $(coldkey) \ | ||
--wallet.hotkey miner2 \ | ||
--subtensor.chain_endpoint $(network) \ | ||
--axon.port 8093 \ | ||
--neuron.name $(MINER_NAME) \ | ||
--wallet.name $(COLDKEY) \ | ||
--wallet.hotkey $(MINER_HOTKEY) \ | ||
--subtensor.chain_endpoint $($(NETWORK)) \ | ||
--axon.port $(MINER_PORT) \ | ||
--axon.ip $(AXON_IP) \ | ||
--axon.external_ip $(AXON_EXTERNAL_IP) \ | ||
--netuid $(netuid) \ | ||
--logging.level $(logging_level) \ | ||
--timeout 16 \ | ||
--forward_function custom_function | ||
--logging.level $(LOGGING_LEVEL) \ | ||
--timeout $(TIMEOUT) \ | ||
--vpermit_tao_limit $(VPERMIT_TAO_LIMIT) \ | ||
--forward_function $(FORWARD_FUNCTION) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.