File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
1
Release Notes
2
2
=============
3
+ 1.0.2
4
+ -----
5
+ Released on January 16th 2025
6
+ - Ensure metagraph is properly synced when new miners join the network
3
7
4
8
1.0.1
5
9
-----
Original file line number Diff line number Diff line change @@ -104,14 +104,17 @@ async def resync_metagraph(self):
104
104
bt .logging .debug (f"Before sync - MinerHistory keys: { old_history } " )
105
105
106
106
# Update available UIDs
107
- self .available_uids = asyncio . run ( self .get_available_uids () )
107
+ self .available_uids = await self .get_available_uids ()
108
108
new_uids = set (self .available_uids )
109
109
110
+ # Update hotkeys dictionary
111
+ self .hotkeys = {uid : value for uid , value in enumerate (self .metagraph .hotkeys )}
112
+
110
113
# Process hotkey changes
111
114
for uid , hotkey in enumerate (self .metagraph .hotkeys ):
112
115
new_miner = uid in new_uids and uid not in old_uids
113
116
if not new_miner :
114
- replaced_miner = self .hotkeys [ uid ] != hotkey
117
+ replaced_miner = self .hotkeys . get ( uid , "" ) != hotkey
115
118
else :
116
119
replaced_miner = False
117
120
@@ -121,9 +124,6 @@ async def resync_metagraph(self):
121
124
if uid in new_uids : # Only create history for available UIDs
122
125
self .MinerHistory [uid ] = MinerHistory (uid , timezone = self .timezone )
123
126
124
- # Update hotkeys dictionary
125
- self .hotkeys = {uid : value for uid , value in enumerate (self .metagraph .hotkeys )}
126
-
127
127
# Ensure all available UIDs have MinerHistory entries
128
128
for uid in self .available_uids :
129
129
if uid not in self .MinerHistory :
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " precog"
3
- version = " 1.0.1 "
3
+ version = " 1.0.2 "
4
4
description = " Bitcoin Price Prediction Subnet"
5
5
authors = [" Coin Metrics" , " Yuma Group" ]
6
6
readme = " README.md"
Original file line number Diff line number Diff line change @@ -16,4 +16,4 @@ def setUp(self):
16
16
def test_package_version (self ):
17
17
# Check that version is as expected
18
18
# Must update to increment package version successfully
19
- self .assertEqual (__version__ , "1.0.1 " )
19
+ self .assertEqual (__version__ , "1.0.2 " )
You can’t perform that action at this time.
0 commit comments