Commit ·
dc20670
1
Parent(s): be257c0
exclude hotkeys with vali permit from weight setting
Browse files
vidaio_subnet_core/__init__.py
CHANGED
|
@@ -12,7 +12,7 @@ __all__ = [
|
|
| 12 |
"CONFIG",
|
| 13 |
]
|
| 14 |
|
| 15 |
-
__version__ = "2.1.
|
| 16 |
|
| 17 |
version_split = __version__.split(".")
|
| 18 |
__spec_version__ = (
|
|
|
|
| 12 |
"CONFIG",
|
| 13 |
]
|
| 14 |
|
| 15 |
+
__version__ = "2.1.1"
|
| 16 |
|
| 17 |
version_split = __version__.split(".")
|
| 18 |
__spec_version__ = (
|
vidaio_subnet_core/validating/managing/miner_manager.py
CHANGED
|
@@ -1141,9 +1141,9 @@ class MinerManager:
|
|
| 1141 |
self.check_database_connection()
|
| 1142 |
|
| 1143 |
for uid, miner in self.query().items():
|
| 1144 |
-
|
|
|
|
| 1145 |
continue
|
| 1146 |
-
|
| 1147 |
if miner.processing_task_type == "compression":
|
| 1148 |
compression_miners.append((uid, miner.accumulate_score))
|
| 1149 |
elif miner.processing_task_type == "upscaling":
|
|
|
|
| 1141 |
self.check_database_connection()
|
| 1142 |
|
| 1143 |
for uid, miner in self.query().items():
|
| 1144 |
+
# Exclude validator from getting weights set
|
| 1145 |
+
if miner.accumulate_score == -1 or self.metagraph.validator_permit[uid]:
|
| 1146 |
continue
|
|
|
|
| 1147 |
if miner.processing_task_type == "compression":
|
| 1148 |
compression_miners.append((uid, miner.accumulate_score))
|
| 1149 |
elif miner.processing_task_type == "upscaling":
|