bug: fix mis-identification of X19 on some new versions of stock.

This commit is contained in:
UpstreamData
2023-02-24 12:31:55 -07:00
parent 5ac5770331
commit 709b3efa81

View File

@@ -781,6 +781,10 @@ class MinerFactory(metaclass=Singleton):
if version and not model:
try:
model = version["VERSION"][0]["Type"].upper()
if "ANTMINER BHB" in model:
# def antminer, get from web
sysinfo = await self.__get_system_info_from_web(str(ip))
model = sysinfo["minertype"].upper()
except KeyError:
pass