File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
bittensor/core/extrinsics Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 1
- import time
2
1
from typing import Optional , TYPE_CHECKING , Sequence
3
2
4
3
from bittensor .core .errors import StakeError , NotRegisteredError
@@ -298,20 +297,6 @@ def add_stake_multiple_extrinsic(
298
297
if staking_response is True : # If we successfully staked.
299
298
# We only wait here if we expect finalization.
300
299
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
-
315
300
if not wait_for_finalization and not wait_for_inclusion :
316
301
old_balance -= staking_balance
317
302
successful_stakes += 1
You can’t perform that action at this time.
0 commit comments