fixed some bugs with differing version of BTMiner and different versions of M30S++ having different chip counts

This commit is contained in:
UpstreamData
2022-05-30 11:13:37 -06:00
parent 5c850a43a9
commit 739126935a
8 changed files with 53 additions and 19 deletions

View File

@@ -1,8 +1,17 @@
from miners._backends import BTMiner # noqa - Ignore access to _module
from miners._types import M30SPlusPlus # noqa - Ignore access to _module
from miners._types import ( # noqa - Ignore access to _module
M30SPlusPlusVG40,
M30SPlusPlusVG30,
)
class BTMinerM30SPlusPlus(BTMiner, M30SPlusPlus):
class BTMinerM30SPlusPlusVG40(BTMiner, M30SPlusPlusVG40):
def __init__(self, ip: str) -> None:
super().__init__(ip)
self.ip = ip
class BTMinerM30SPlusPlusVG30(BTMiner, M30SPlusPlusVG30):
def __init__(self, ip: str) -> None:
super().__init__(ip)
self.ip = ip