clore-rentals #1

Merged
clore merged 11 commits from clore-rentals into main 2025-09-09 12:10:06 +00:00
1 changed files with 9 additions and 3 deletions
Showing only changes of commit 90a76735e2 - Show all commits

View File

@ -261,9 +261,15 @@ async def hive_load_configs(default_power_limits, static_config):
elif key == "CUSTOM_MINER" and value == "clore":
clore_miner_present = True
elif key == "META":
try:
meta_value = json.loads(value)
logger.info(meta_value)
if (isinstance(meta_value, dict) and
"clore-rentals" in meta_value and
isinstance(meta_value["clore-rentals"], dict) and
meta_value["clore-rentals"].get("coin") == "CLORE-Rentals"):
clore_miner_present = True
except (json.JSONDecodeError, TypeError, KeyError) as e:
pass
if (not clore_miner_present or not clore_config) and parsed_static_config:
clore_miner_present = True