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 dd84aede25
commit 038aae95ac
115 changed files with 644 additions and 735 deletions

View File

@@ -1,9 +1,8 @@
from miners.btminer import BTMiner
from miners._backends import BTMiner
from miners._types import M30SPlusPlus
class BTMinerM30SPlusPlus(BTMiner):
class BTMinerM30SPlusPlus(BTMiner, M30SPlusPlus):
def __init__(self, ip: str) -> None:
super().__init__(ip)
def __repr__(self) -> str:
return f"M30S++ - BTMiner: {str(self.ip)}"
self.ip = ip