finished updating the miner type handlers to create subclasses of the backend and type to create a miner, each of which handles its own data to simplify creation of new miner types

This commit is contained in:
UpstreamData
2022-05-13 11:27:56 -06:00
parent 06540efc98
commit 44012c50d6
115 changed files with 644 additions and 735 deletions

View File

@@ -1,12 +1,8 @@
from miners.cgminer import CGMiner
from miners._backends import CGMiner
from miners._types import S17
class CGMinerS17(CGMiner):
class CGMinerS17(CGMiner, S17):
def __init__(self, ip: str) -> None:
super().__init__(ip)
self.api_type = "CGMiner"
self.model = "S17"
self.nominal_chips = 65
def __repr__(self) -> str:
return f"CGMinerS17: {str(self.ip)}"
self.ip = ip