Skip to content

Commit

Permalink
Update NETUID to 1 in run_openai_miner.sh and run_validator.sh scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Feb 27, 2024
1 parent c43517d commit 82e179f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/run_openai_miner.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

NETUID=${1:-0}
NETUID=${1:-1}
CHAIN_ENDPOINT=${2:-"ws://127.0.0.1:9946"}
WALLET_NAME=${3:-"openai_miner"}
WALLET_HOTKEY=${4:-"default"}
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_validator.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

NETUID=${1:-0}
NETUID=${1:-1}
CHAIN_ENDPOINT=${2:-"ws://127.0.0.1:9946"}
WALLET_NAME=${3:-"validator"}
WALLET_HOTKEY=${4:-"default"}
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup_miner_wallet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export BT_MINER_TOKEN_WALLET=$(cat ~/.bittensor/wallets/"${wallet}"/coldkeypub.t
btcli wallet transfer --subtensor.network ws://127.0.0.1:9946 --wallet.name owner --dest "$BT_MINER_TOKEN_WALLET" --amount 1000 --no_prompt

# Register wallet hotkeys to subnet
btcli subnet register --wallet.name "${wallet}" --netuid 0 --wallet.hotkey default --subtensor.chain_endpoint ws://127.0.0.1:9946 --no_prompt
btcli subnet register --wallet.name "${wallet}" --netuid 1 --wallet.hotkey default --subtensor.chain_endpoint ws://127.0.0.1:9946 --no_prompt

# Ensure both the miner and validator keys are successfully registered.
btcli subnet list --subtensor.chain_endpoint ws://127.0.0.1:9946
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup_validator_wallet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export BT_VALIDATOR_TOKEN_WALLET=$(cat ~/.bittensor/wallets/"${wallet}"/coldkeyp
btcli wallet transfer --subtensor.network ws://127.0.0.1:9946 --wallet.name owner --dest "$BT_VALIDATOR_TOKEN_WALLET" --amount 10000 --no_prompt

# Register wallet hotkeys to subnet
btcli subnet register --wallet.name "${wallet}" --netuid 0 --wallet.hotkey default --subtensor.chain_endpoint ws://127.0.0.1:9946 --no_prompt
btcli subnet register --wallet.name "${wallet}" --netuid 1 --wallet.hotkey default --subtensor.chain_endpoint ws://127.0.0.1:9946 --no_prompt

# Add stake to the validator
btcli stake add --wallet.name "${wallet}" --wallet.hotkey default --subtensor.chain_endpoint ws://127.0.0.1:9946 --amount 10000 --no_prompt
Expand Down

0 comments on commit 82e179f

Please sign in to comment.