From 0ba4332015f31fd61bc70db625d14467a845f03e Mon Sep 17 00:00:00 2001 From: Cameron Fairchild Date: Wed, 29 Mar 2023 20:27:53 +0000 Subject: [PATCH] (un)Staking multiple avoid tx limit (#1244) * add tx rate limit * wait for tx limit if not done multi stake/unstake * dont "decrypt" hotkey --- bittensor/_subtensor/extrinsics/staking.py | 1 + bittensor/_subtensor/subtensor_impl.py | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/bittensor/_subtensor/extrinsics/staking.py b/bittensor/_subtensor/extrinsics/staking.py index c9af6ed83b..f567cab07a 100644 --- a/bittensor/_subtensor/extrinsics/staking.py +++ b/bittensor/_subtensor/extrinsics/staking.py @@ -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: diff --git a/bittensor/_subtensor/subtensor_impl.py b/bittensor/_subtensor/subtensor_impl.py index bd4cc1a506..dc4e6d7994 100644 --- a/bittensor/_subtensor/subtensor_impl.py +++ b/bittensor/_subtensor/subtensor_impl.py @@ -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 #### #####################################