Skip to content

Commit 1275e4c

Browse files
committed
Updates move_stake
1 parent 39e232a commit 1275e4c

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

bittensor/core/async_subtensor.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -732,13 +732,6 @@ async def move_stake(
732732
if isinstance(amount, (float, int)):
733733
amount = Balance.from_tao(amount)
734734

735-
origin_owner = await self.get_hotkey_owner(origin_hotkey)
736-
if origin_owner != wallet.coldkeypub.ss58_address:
737-
logging.error(
738-
f":cross_mark: [red]Failed[/red]: Origin hotkey: {origin_hotkey} does not belong to the coldkey owner: {wallet.coldkeypub.ss58_address}"
739-
)
740-
return False
741-
742735
stake_in_origin = await self.get_stake(
743736
hotkey_ss58=origin_hotkey,
744737
coldkey_ss58=wallet.coldkeypub.ss58_address,

bittensor/core/subtensor.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2843,13 +2843,6 @@ def move_stake(
28432843
if isinstance(amount, (float, int)):
28442844
amount = Balance.from_tao(amount)
28452845

2846-
origin_owner = self.get_hotkey_owner(origin_hotkey)
2847-
if origin_owner != wallet.coldkeypub.ss58_address:
2848-
logging.error(
2849-
f":cross_mark: [red]Failed[/red]: Origin hotkey: {origin_hotkey} does not belong to the coldkey owner: {wallet.coldkeypub.ss58_address}"
2850-
)
2851-
return False
2852-
28532846
stake_in_origin = self.get_stake(
28542847
hotkey_ss58=origin_hotkey,
28552848
coldkey_ss58=wallet.coldkeypub.ss58_address,

0 commit comments

Comments
 (0)