Skip to content

Commit 8245f64

Browse files
Merge branch 'staging' into fix/e2e-test-incentive
2 parents 8347495 + 4ea2a13 commit 8245f64

File tree

5 files changed

+27
-20
lines changed

5 files changed

+27
-20
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
@@ -70,7 +70,7 @@ async def test_commit_and_reveal_weights_legacy(local_chain, subtensor, alice_wa
7070
), "Failed to set weights_rate_limit"
7171
assert subtensor.weights_rate_limit(netuid=netuid) == 0
7272

73-
# Increase subnet tempo so we have enought time to commit and reveal weights
73+
# Increase subnet tempo so we have enough time to commit and reveal weights
7474
sudo_set_admin_utils(
7575
local_chain,
7676
alice_wallet,

0 commit comments

Comments
 (0)