Skip to content

Commit 9de4ccf

Browse files
committed
Merge branch 'staging' into feat/thewhaleking/disk-cache-config
2 parents 0100d8d + db8387a commit 9de4ccf

File tree

6 files changed

+26
-7
lines changed

6 files changed

+26
-7
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 9.10.1 /2025-08-12
4+
* Removes double param for `--cache` in `config set` by @thewhaleking in https://github.com/opentensor/btcli/pull/579
5+
* change root only sudo hyperparams by @thewhaleking in https://github.com/opentensor/btcli/pull/580
6+
* Better error formatting by @thewhaleking in https://github.com/opentensor/btcli/pull/581
7+
* Handle optional netuid better by @thewhaleking in https://github.com/opentensor/btcli/pull/582
8+
* wallet fixes by @thewhaleking in https://github.com/opentensor/btcli/pull/585
9+
* Adds `moving_price` attr to DynamicInfo by @thewhaleking in https://github.com/opentensor/btcli/pull/583
10+
11+
**Full Changelog**: https://github.com/opentensor/btcli/compare/v9.10.0...v9.10.1
12+
313
## 9.10.0 /2025-08-06
414
* Sets default interval hours for subnets price to 4, bc of rate limiting. by @thewhaleking in https://github.com/opentensor/btcli/pull/568
515
* Subnets Price --current + improvements by @thewhaleking in https://github.com/opentensor/btcli/pull/569

bittensor_cli/cli.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,10 +410,15 @@ def get_optional_netuid(netuid: Optional[int], all_netuids: bool) -> Optional[in
410410
)
411411
if answer is None:
412412
return None
413+
answer = answer.strip()
413414
if answer.lower() == "all":
414415
return None
415416
else:
416-
return int(answer)
417+
try:
418+
return int(answer)
419+
except ValueError:
420+
err_console.print(f"Invalid netuid: {answer}")
421+
return get_optional_netuid(None, False)
417422
else:
418423
return netuid
419424

bittensor_cli/src/bittensor/chain_data.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,7 @@ class DynamicInfo(InfoBase):
718718
network_registered_at: int
719719
subnet_identity: Optional[SubnetIdentity]
720720
subnet_volume: Balance
721+
moving_price: float
721722

722723
@classmethod
723724
def _fix_decoded(cls, decoded: Any) -> "DynamicInfo":
@@ -786,6 +787,7 @@ def _fix_decoded(cls, decoded: Any) -> "DynamicInfo":
786787
network_registered_at=int(decoded.get("network_registered_at")),
787788
subnet_identity=subnet_identity,
788789
subnet_volume=subnet_volume,
790+
moving_price=fixed_to_float(decoded["moving_price"], 32),
789791
)
790792

791793
def tao_to_alpha(self, tao: Balance) -> Balance:

bittensor_cli/src/bittensor/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1443,5 +1443,5 @@ def get_hotkey_pub_ss58(wallet: Wallet) -> str:
14431443
"""
14441444
try:
14451445
return wallet.hotkeypub.ss58_address
1446-
except KeyFileError:
1446+
except (KeyFileError, AttributeError):
14471447
return wallet.hotkey.ss58_address

bittensor_cli/src/commands/wallets.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -452,13 +452,15 @@ async def wallet_create(
452452
"error": "",
453453
"data": None,
454454
}
455+
455456
if uri:
456457
try:
457458
keypair = Keypair.create_from_uri(uri)
458-
wallet.set_coldkey(keypair=keypair, encrypt=False, overwrite=False)
459-
wallet.set_coldkeypub(keypair=keypair, encrypt=False, overwrite=False)
460-
wallet.set_hotkey(keypair=keypair, encrypt=False, overwrite=False)
461-
wallet.set_coldkeypub(keypair=keypair, encrypt=False, overwrite=False)
459+
wallet.set_coldkey(keypair=keypair, encrypt=False, overwrite=overwrite)
460+
wallet.set_coldkeypub(keypair=keypair, encrypt=False, overwrite=overwrite)
461+
wallet.set_hotkey(keypair=keypair, encrypt=False, overwrite=overwrite)
462+
wallet.set_hotkeypub(keypair=keypair, encrypt=False, overwrite=overwrite)
463+
wallet.set_coldkeypub(keypair=keypair, encrypt=False, overwrite=overwrite)
462464
output_dict["success"] = True
463465
output_dict["data"] = {
464466
"name": wallet.name,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "bittensor-cli"
7-
version = "9.10.0"
7+
version = "9.10.1"
88
description = "Bittensor CLI"
99
readme = "README.md"
1010
authors = [

0 commit comments

Comments
 (0)