Skip to content

Commit

Permalink
update new_miner check in weight_setter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
peterc-yuma committed Jan 14, 2025
1 parent 67d066a commit 95355fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion precog/validators/weight_setter.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async def resync_metagraph(self):

# Process hotkey changes
for uid, hotkey in enumerate(self.metagraph.hotkeys):
new_miner = uid not in self.hotkeys
new_miner = uid in new_uids and uid not in old_uids
if not new_miner:
replaced_miner = self.hotkeys[uid] != hotkey
else:
Expand Down

0 comments on commit 95355fe

Please sign in to comment.