Skip to content

Commit

Permalink
(un)Staking multiple avoid tx limit (#1244)
Browse files Browse the repository at this point in the history
* add tx rate limit

* wait for tx limit if not done multi stake/unstake

* dont "decrypt" hotkey
  • Loading branch information
camfairchild authored and ifrit98 committed Jun 8, 2023
1 parent da63d12 commit 81e73d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions bittensor/_subtensor/extrinsics/staking.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ def __do_add_stake_single(
"""
# Decrypt keys,
wallet.coldkey

hotkey_owner = subtensor.get_hotkey_owner( hotkey_ss58 )
own_hotkey = (wallet.coldkeypub.ss58_address == hotkey_owner)
if not own_hotkey:
Expand Down
3 changes: 0 additions & 3 deletions bittensor/_subtensor/subtensor_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,9 +598,6 @@ def serving_rate_limit (self, block: Optional[int] = None ) -> Optional[int]:
def tx_rate_limit (self, block: Optional[int] = None ) -> Optional[int]:
return self.query_subtensor( "TxRateLimit", block ).value

def tx_rate_limit (self, block: Optional[int] = None ) -> Optional[int]:
return self.query_subtensor( "TxRateLimit", block ).value

#####################################
#### Network Parameters ####
#####################################
Expand Down

0 comments on commit 81e73d4

Please sign in to comment.