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