Skip to content

Commit d0b0cfc

Browse files
Merge branch 'staging' into tests/zyzniewski/more_e2e_tests
2 parents 2dd9b7b + 0f8d278 commit d0b0cfc

File tree

6 files changed

+28
-22
lines changed

6 files changed

+28
-22
lines changed

CHANGELOG.md

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

3+
## 9.0.1 /2025-02-20
4+
5+
## What's Changed
6+
* Release/9.0.0 by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2671
7+
* fix e2e test by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2673
8+
* fix e2e test incentive by @roman-opentensor in https://github.com/opentensor/bittensor/pull/2674
9+
* Add compatibility for read-only systems by @Arthurdw in https://github.com/opentensor/bittensor/pull/2676
10+
* test: use asynccontextmanager for FastAPI lifespan by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2597
11+
* test(2472): offline unittests by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2596
12+
* Removes redundant assignments in Metagraph by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2680
13+
* Alpha str formatting by @thewhaleking in https://github.com/opentensor/bittensor/pull/2672
14+
* Add method for fetching all Neuron Certificates on a Netuid by @thewhaleking in https://github.com/opentensor/bittensor/pull/2677
15+
* Updates tao_stake in MetagraphInfo by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2682
16+
* fix(2188): configure uvicorn event loop by @zyzniewski-reef in https://github.com/opentensor/bittensor/pull/2679
17+
* Refactor AsyncSubtensor aenter logic by @thewhaleking in https://github.com/opentensor/bittensor/pull/2684
18+
* Backmerge master to staging 900 by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/2685
19+
20+
## New Contributors
21+
* @Arthurdw made their first contribution in https://github.com/opentensor/bittensor/pull/2676
22+
23+
**Full Changelog**: https://github.com/opentensor/bittensor/compare/v9.0.0...v9.0.1
24+
325
## 9.0.0 /2025-02-13
426

527
## What's Changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9.0.0
1+
9.0.1

bittensor/core/extrinsics/staking.py

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import time
21
from typing import Optional, TYPE_CHECKING, Sequence
32

43
from bittensor.core.errors import StakeError, NotRegisteredError
@@ -233,7 +232,7 @@ def add_stake_multiple_extrinsic(
233232
total_staking_rao = sum(
234233
[amount.rao if amount is not None else 0 for amount in new_amounts]
235234
)
236-
old_balance = inital_balance = subtensor.get_balance(
235+
old_balance = initial_balance = subtensor.get_balance(
237236
wallet.coldkeypub.ss58_address, block=block
238237
)
239238
if total_staking_rao == 0:
@@ -298,20 +297,6 @@ def add_stake_multiple_extrinsic(
298297
if staking_response is True: # If we successfully staked.
299298
# We only wait here if we expect finalization.
300299

301-
if idx < len(hotkey_ss58s) - 1:
302-
# Wait for tx rate limit.
303-
tx_query = subtensor.substrate.query(
304-
module="SubtensorModule", storage_function="TxRateLimit"
305-
)
306-
tx_rate_limit_blocks: int = getattr(tx_query, "value", 0)
307-
if tx_rate_limit_blocks > 0:
308-
logging.error(
309-
f":hourglass: [yellow]Waiting for tx rate limit: [white]{tx_rate_limit_blocks}[/white] "
310-
f"blocks[/yellow]"
311-
)
312-
# 12 seconds per block
313-
time.sleep(tx_rate_limit_blocks * 12)
314-
315300
if not wait_for_finalization and not wait_for_inclusion:
316301
old_balance -= staking_balance
317302
successful_stakes += 1
@@ -365,7 +350,7 @@ def add_stake_multiple_extrinsic(
365350
)
366351
new_balance = subtensor.get_balance(wallet.coldkeypub.ss58_address)
367352
logging.info(
368-
f"Balance: [blue]{inital_balance}[/blue] :arrow_right: [green]{new_balance}[/green]"
353+
f"Balance: [blue]{initial_balance}[/blue] :arrow_right: [green]{new_balance}[/green]"
369354
)
370355
return True
371356

bittensor/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "9.0.0"
1+
__version__ = "9.0.1"
22

33
import os
44
import re

tests/e2e_tests/test_commit_weights.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async def test_commit_and_reveal_weights_legacy(local_chain, subtensor, alice_wa
6868
), "Failed to set weights_rate_limit"
6969
assert subtensor.weights_rate_limit(netuid=netuid) == 0
7070

71-
# Increase subnet tempo so we have enought time to commit and reveal weights
71+
# Increase subnet tempo so we have enough time to commit and reveal weights
7272
sudo_set_admin_utils(
7373
local_chain,
7474
alice_wallet,

tests/unit_tests/test_config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
def test_py_config_parsed_successfully_rust_wallet():
66
"""Verify that python based config object is successfully parsed with rust-based wallet object."""
7-
# Preps
87
parser = argparse.ArgumentParser()
98

109
bittensor.wallet.add_args(parser)
@@ -14,7 +13,7 @@ def test_py_config_parsed_successfully_rust_wallet():
1413

1514
config = bittensor.config(parser)
1615

17-
# since we can't apply mocking to rust implewmented object then replace those directly
16+
# override config manually since we can't apply mocking to rust objects easily
1817
config.wallet.name = "new_wallet_name"
1918
config.wallet.hotkey = "new_hotkey"
2019
config.wallet.path = "/some/not_default/path"

0 commit comments

Comments
 (0)