feature: add AM old and goldshell configs.

This commit is contained in:
Upstream Data
2023-12-10 09:45:34 -07:00
parent bfdfa8a6ab
commit 0399094197
4 changed files with 30 additions and 16 deletions

View File

@@ -108,6 +108,15 @@ class MinerConfig:
fan_mode=FanModeConfig.from_am_modern(web_conf)
)
@classmethod
def from_am_old(cls, web_conf: dict):
return cls.from_am_modern(web_conf)
@classmethod
def from_goldshell(cls, web_conf: dict):
return cls(
pools=PoolConfig.from_am_modern(web_conf),
)
def merge(a: dict, b: dict):