Skip to content

Conversation

@stephen-ridges
Copy link
Collaborator

@stephen-ridges stephen-ridges commented Oct 7, 2025

  • Still uses the JSON file as a cache to see if a hotkey is registered
  • fallback to polling every 15 minutes

Command to get current registered hotkeys:

rsync -chavzP --stats ubuntu@mainnet-platform:/home/ubuntu/ridges/subnet_hotkeys_cache.json ./subnet_hotkeys_cache.json

Local testing

Setup localnet here

NEW_MINER=miner-7
btcli wallet create --wallet-name "${NEW_MINER}" --no-use-password --n-words 12 --wallet-path ~/.bittensor/wallets/ --hotkey default
btcli wallet transfer --wallet.name owner --dest "$(jq --raw-output ".ss58Address" ~/.bittensor/wallets/"${NEW_MINER}"/coldkeypub.txt)" --amount 1000 --no_prompt
btcli subnet register --wallet.name "${NEW_MINER}" --netuid 1 --wallet.hotkey default --subtensor.chain_endpoint ws://127.0.0.1:9944 --no-prompt

@stephen-ridges stephen-ridges self-assigned this Oct 7, 2025
@stephen-ridges stephen-ridges added the enhancement New feature or request label Oct 7, 2025
@stephen-ridges stephen-ridges force-pushed the sync-metagraph branch 2 times, most recently from fb258e2 to b69c552 Compare October 7, 2025 23:12
@stephen-ridges stephen-ridges marked this pull request as ready for review October 7, 2025 23:58
@stephen-ridges stephen-ridges force-pushed the sync-metagraph branch 2 times, most recently from 0b9e5c0 to 3b4931b Compare October 8, 2025 20:31
@hobbleabbas hobbleabbas merged commit 3c8c32c into main Oct 8, 2025
4 of 6 checks passed
@stephen-ridges stephen-ridges deleted the sync-metagraph branch October 23, 2025 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants