Skip to content

Commit 4ea2a13

Browse files
authored
Merge pull request #2694 from opentensor/fix/remove-tx-limit-staking
Removes tx limit in stake_multiple
2 parents 640d1dd + 25a9444 commit 4ea2a13

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

bittensor/core/extrinsics/staking.py

Lines changed: 0 additions & 15 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
@@ -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

0 commit comments

Comments
 (0)