added a basis for configuration of X17 and X19 miners by getting pool info from config file.

This commit is contained in:
UpstreamData
2022-06-02 16:06:36 -06:00
parent 3ee49e6fd7
commit 4bbb9d0b08
5 changed files with 21 additions and 10 deletions

View File

@@ -76,3 +76,13 @@ SAMPLE CONFIG
}
}
"""
def general_config_convert_pools(config: dict):
out_config = {}
pools = config.get("pool_groups")
if pools:
if len(pools) > 0:
pools = pools[0]
out_config = pools["pools"][:3]
return out_config