This repository was archived by the owner on Jul 12, 2026. It is now read-only.
Repository navigation
feat(wallet): add --coldkeys-only and natural sort to wallet list - #999
Merged
thewhaleking merged 1 commit intoJun 11, 2026
Conversation
wouterharinghuizen
requested review from
basfroman,
ibraheem-abe and
thewhaleking
as code owners
June 11, 2026 12:04
wouterharinghuizen
force-pushed
the
feat/wallet-list-coldkeys-only
branch
3 times, most recently
from
June 11, 2026 12:12
dd91870 to
d4a87eb
Compare
Add --coldkeys-only to skip hotkey enumeration for large wallet dirs. Sort coldkeys and hotkeys naturally by name (item2 before item10).
wouterharinghuizen
force-pushed
the
feat/wallet-list-coldkeys-only
branch
from
June 11, 2026 12:13
d4a87eb to
e07cce9
Compare
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
approved these changes
Jun 11, 2026
Merged
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--coldkeys-onlytobtcli wallet list/btcli w listto show coldkeys without enumerating hotkeys (skips hotkey filesystem lookups)coldkey2beforecoldkey10,hotkey90afterhotkey8)Usage
btcli w list btcli w list --coldkeys-only btcli wallet list --path ~/.bittensor --coldkeys-only btcli w list --coldkeys-only --json-outputTest plan
tests/unit_tests/test_wallet_list.py(6 tests)Notes
wallets.wallet_list; CLI adds the flag only (same pattern as other wallet commands)w listoutput;--coldkeys-onlyonly controls whether hotkeys are shown