From 9812b02149151890096f97024bb2fcf45d6de161 Mon Sep 17 00:00:00 2001 From: Dylan Uys Date: Mon, 19 May 2025 20:03:40 +0000 Subject: [PATCH 1/2] fix hotkey check in sync_metagraph --- bitmind/scoring/eval_engine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitmind/scoring/eval_engine.py b/bitmind/scoring/eval_engine.py index c84fd93c..d396f3f9 100644 --- a/bitmind/scoring/eval_engine.py +++ b/bitmind/scoring/eval_engine.py @@ -126,7 +126,7 @@ def _update_scores(self, rewards: dict): scattered_rewards[vali_uids] = 0.0 scattered_rewards[no_response_uids] = 0.0 scattered_rewards[uids_array] = rewards - bt.logging.debug(f"Scattered rewards: {rewards}") + bt.logging.debug(f"Scattered rewards: {scattered_rewards}") # Update scores with rewards produced by this step. # shape: [ metagraph.n ] @@ -288,7 +288,7 @@ def sync_to_metagraph(self): handles clearing predictio history in `update` when a new hotkey is detected""" hotkeys = self.tracker.miner_hotkeys - for uid, hotkey in enumerate(hotkeys): + for uid, hotkey in hotkeys.items(): if hotkey != self.metagraph.hotkeys[uid]: self.scores[uid] = 0 # hotkey has been replaced self.maybe_extend_scores(self.metagraph.n) From 01ce4dac805dfd60bae318f06699ac121463979e Mon Sep 17 00:00:00 2001 From: Dylan Uys Date: Mon, 19 May 2025 20:04:20 +0000 Subject: [PATCH 2/2] bump version --- VERSION | 2 +- bitmind/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index b38ebbfc..7da3c168 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.0.4 \ No newline at end of file +3.0.5 \ No newline at end of file diff --git a/bitmind/__init__.py b/bitmind/__init__.py index 85fef45e..15a7376e 100644 --- a/bitmind/__init__.py +++ b/bitmind/__init__.py @@ -1,4 +1,4 @@ -__version__ = "3.0.4" +__version__ = "3.0.5" version_split = __version__.split(".") __spec_version__ = (