Skip to content

Commit a6ad246

Browse files
committed
Removes tx limit in stake_multiple
1 parent 597b6b5 commit a6ad246

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

bittensor/core/extrinsics/staking.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -298,20 +298,6 @@ def add_stake_multiple_extrinsic(
298298
if staking_response is True: # If we successfully staked.
299299
# We only wait here if we expect finalization.
300300

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-
315301
if not wait_for_finalization and not wait_for_inclusion:
316302
old_balance -= staking_balance
317303
successful_stakes += 1

0 commit comments

Comments
 (0)