Skip to content

Add a warn flag when --netuid 0 is used for btcli hotkey swap#666

Merged
thewhaleking merged 9 commits intoopentensor:stagingfrom
nstankov-stkd:main
Oct 23, 2025
Merged

Add a warn flag when --netuid 0 is used for btcli hotkey swap#666
thewhaleking merged 9 commits intoopentensor:stagingfrom
nstankov-stkd:main

Conversation

@nstankov-stkd
Copy link
Contributor

Using something along the lines of

      /usr/local/bin/btcli wallet swap-hotkey "$SWAP_HOTKEY_NAME" --wallet-path="$HOME/verySecretPath" --wallet-name='cold' --wallet.hotkey hot --netuid "0" --network "$CHAIN_ENDPOINT" --yes

Has the unintended consequence of not porting over any child-hotkey mappings the original hotkey, registered on SN0, might have had.
Adding warnings to prevent users from doing that.

@basfroman basfroman requested a review from a team October 20, 2025 18:11
@ibraheem-abe ibraheem-abe changed the base branch from main to staging October 20, 2025 18:15
@thewhaleking
Copy link
Contributor

This is nice to have:
Add warning and confirmation for wallet swap_hotkey --netuid 0 to prevent accidental misuse. Using --netuid 0 only swaps the hotkey on the root network (netuid 0) and does NOT move child hotkey delegation mappings. This is not a full swap across all subnets. Updated documentation and added comprehensive unit tests to clarify proper usage.

But should not go in the changelog as-is. The changelog is updated on release.

Copy link
Contributor

@thewhaleking thewhaleking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed changelog in #673

@thewhaleking thewhaleking merged commit 51c3738 into opentensor:staging Oct 23, 2025
49 checks passed
@thewhaleking thewhaleking mentioned this pull request Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants