Wallet config debugging. More.
This commit is contained in:
parent
b74bb34f40
commit
90a76735e2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue