Skip to content
This repository was archived by the owner on Jul 12, 2026. It is now read-only.

feat(wallet): add --coldkeys-only and natural sort to wallet list - #999

Merged
thewhaleking merged 1 commit into
RaoFoundation:stagingfrom
wouterharinghuizen:feat/wallet-list-coldkeys-only
Jun 11, 2026
Merged

thewhaleking merged 1 commit into
RaoFoundation:stagingfrom
wouterharinghuizen:feat/wallet-list-coldkeys-only

Conversation

@wouterharinghuizen

@wouterharinghuizen wouterharinghuizen commented Jun 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds --coldkeys-only to btcli wallet list / btcli w list to show coldkeys without enumerating hotkeys (skips hotkey filesystem lookups)
  • Sorts coldkeys and hotkeys in natural order by name (e.g. coldkey2 before coldkey10, hotkey90 after hotkey8)

Usage

btcli w list
btcli w list --coldkeys-only
btcli wallet list --path ~/.bittensor --coldkeys-only
btcli w list --coldkeys-only --json-output

Test plan

  • tests/unit_tests/test_wallet_list.py (6 tests)
  • Full unit suite: 450 passed

Notes

  • Logic lives in wallets.wallet_list; CLI adds the flag only (same pattern as other wallet commands)
  • Natural sort applies to all w list output; --coldkeys-only only controls whether hotkeys are shown

@wouterharinghuizen
wouterharinghuizen force-pushed the feat/wallet-list-coldkeys-only branch 3 times, most recently from dd91870 to d4a87eb Compare June 11, 2026 12:12
@wouterharinghuizen wouterharinghuizen changed the title feat(wallet): add --coldkeys-only to wallet list feat(wallet): add --coldkeys-only and natural sort to wallet list Jun 11, 2026
Add --coldkeys-only to skip hotkey enumeration for large wallet dirs.
Sort coldkeys and hotkeys naturally by name (item2 before item10).
@wouterharinghuizen
wouterharinghuizen force-pushed the feat/wallet-list-coldkeys-only branch from d4a87eb to e07cce9 Compare June 11, 2026 12:13
@wouterharinghuizen

Copy link
Copy Markdown
Contributor Author

I use btcli w list a lot, and the output always felt off: coldkeys showed up in what looked like random order, and with many hotkeys per coldkey the tree got noisy fast. This PR fixes the sort and adds --coldkeys-only when I just want a quick coldkey overview without scanning every hotkey.

@thewhaleking
thewhaleking merged commit cc1e071 into RaoFoundation:staging Jun 11, 2026
94 checks passed
@ibraheem-abe ibraheem-abe mentioned this pull request Jun 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants