Skip to content

Commit

Permalink
Updates move_stake
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheem-opentensor committed Jan 23, 2025
1 parent 39e232a commit 1275e4c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions bittensor/core/async_subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,13 +732,6 @@ async def move_stake(
if isinstance(amount, (float, int)):
amount = Balance.from_tao(amount)

origin_owner = await self.get_hotkey_owner(origin_hotkey)
if origin_owner != wallet.coldkeypub.ss58_address:
logging.error(
f":cross_mark: [red]Failed[/red]: Origin hotkey: {origin_hotkey} does not belong to the coldkey owner: {wallet.coldkeypub.ss58_address}"
)
return False

stake_in_origin = await self.get_stake(
hotkey_ss58=origin_hotkey,
coldkey_ss58=wallet.coldkeypub.ss58_address,
Expand Down
7 changes: 0 additions & 7 deletions bittensor/core/subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2843,13 +2843,6 @@ def move_stake(
if isinstance(amount, (float, int)):
amount = Balance.from_tao(amount)

origin_owner = self.get_hotkey_owner(origin_hotkey)
if origin_owner != wallet.coldkeypub.ss58_address:
logging.error(
f":cross_mark: [red]Failed[/red]: Origin hotkey: {origin_hotkey} does not belong to the coldkey owner: {wallet.coldkeypub.ss58_address}"
)
return False

stake_in_origin = self.get_stake(
hotkey_ss58=origin_hotkey,
coldkey_ss58=wallet.coldkeypub.ss58_address,
Expand Down

0 comments on commit 1275e4c

Please sign in to comment.