Wallet config debugging. More.

This commit is contained in:
empresa 2025-09-09 18:49:22 +07:00
parent b74bb34f40
commit 90a76735e2
1 changed files with 9 additions and 3 deletions

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