diff --git a/CHANGELOG.md b/CHANGELOG.md index a6d473005..1156596e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 9.1.3 /2025-03-12 + +## What's Changed +* Allows childkey take of 0 by @thewhaleking in https://github.com/opentensor/btcli/pull/376 +* Passes prompt for pow_register by @thewhaleking in https://github.com/opentensor/btcli/pull/379 +* Updates staking test by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/382 + +**Full Changelog**: https://github.com/opentensor/btcli/compare/v9.1.2...v9.1.3 + ## 9.1.2 /2025-03-07 ## What's Changed diff --git a/bittensor_cli/src/commands/stake/children_hotkeys.py b/bittensor_cli/src/commands/stake/children_hotkeys.py index 89b5ade4f..a19bf5af3 100644 --- a/bittensor_cli/src/commands/stake/children_hotkeys.py +++ b/bittensor_cli/src/commands/stake/children_hotkeys.py @@ -190,7 +190,7 @@ async def set_childkey_take_extrinsic( f":satellite: Setting childkey take on [white]{subtensor.network}[/white] ..." ): try: - if 0 < take <= 0.18: + if 0 <= take <= 0.18: take_u16 = float_to_u16(take) else: return False, "Invalid take value" diff --git a/bittensor_cli/src/commands/subnets/subnets.py b/bittensor_cli/src/commands/subnets/subnets.py index be595ee8e..1db23a4d0 100644 --- a/bittensor_cli/src/commands/subnets/subnets.py +++ b/bittensor_cli/src/commands/subnets/subnets.py @@ -1417,6 +1417,7 @@ async def pow_register( use_cuda, dev_id, threads_per_block, + prompt: bool ): """Register neuron.""" @@ -1424,7 +1425,7 @@ async def pow_register( subtensor, wallet=wallet, netuid=netuid, - prompt=True, + prompt=prompt, tpb=threads_per_block, update_interval=update_interval, num_processes=processors, diff --git a/bittensor_cli/version.py b/bittensor_cli/version.py index 25e3ad899..d5ce174d9 100644 --- a/bittensor_cli/version.py +++ b/bittensor_cli/version.py @@ -15,5 +15,6 @@ def version_as_int(version): __new_signature_version__ = 360 return __version_as_int__ -__version__ = "9.1.2" + +__version__ = "9.1.3" __version_as_int__ = version_as_int(__version__) diff --git a/pyproject.toml b/pyproject.toml index aa8043d0b..646ea5078 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "bittensor-cli" -version = "9.1.2" +version = "9.1.3" description = "Bittensor CLI" readme = "README.md" authors = [ diff --git a/tests/e2e_tests/test_staking_sudo.py b/tests/e2e_tests/test_staking_sudo.py index 6684b1a12..c1b939c8f 100644 --- a/tests/e2e_tests/test_staking_sudo.py +++ b/tests/e2e_tests/test_staking_sudo.py @@ -135,7 +135,7 @@ def test_staking(local_chain, wallet_setup): re.sub(r"\s+", " ", line) for line in show_stake.stdout.splitlines() ] stake_added = cleaned_stake[8].split("│")[3].strip().split()[0] - assert Balance.from_tao(float(stake_added)) >= Balance.from_tao(100) + assert Balance.from_tao(float(stake_added)) >= Balance.from_tao(90) # Execute remove_stake command and remove all 100 TAO from Alice remove_stake = exec_command_alice(