From 90a76735e2805a3d2cfa76bdf538c122904f5c80 Mon Sep 17 00:00:00 2001 From: empresa Date: Tue, 9 Sep 2025 18:49:22 +0700 Subject: [PATCH] Wallet config debugging. More. --- clore_onboarding.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/clore_onboarding.py b/clore_onboarding.py index e712672..f4e5d5c 100644 --- a/clore_onboarding.py +++ b/clore_onboarding.py @@ -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": - meta_value = json.loads(value) - logger.info(meta_value) - clore_miner_present = True + try: + meta_value = json.loads(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