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:
8
miners/avalonminer/cgminer/A8X/A821.py
Normal file
8
miners/avalonminer/cgminer/A8X/A821.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from miners._backends import CGMiner
|
||||
from miners._types import Avalon821
|
||||
|
||||
|
||||
class CGMinerAvalon821(CGMiner, Avalon821):
|
||||
def __init__(self, ip: str) -> None:
|
||||
super().__init__(ip)
|
||||
self.ip = ip
|
||||
8
miners/avalonminer/cgminer/A8X/A841.py
Normal file
8
miners/avalonminer/cgminer/A8X/A841.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from miners._backends import CGMiner
|
||||
from miners._types import Avalon841
|
||||
|
||||
|
||||
class CGMinerAvalon841(CGMiner, Avalon841):
|
||||
def __init__(self, ip: str) -> None:
|
||||
super().__init__(ip)
|
||||
self.ip = ip
|
||||
2
miners/avalonminer/cgminer/A8X/__init__.py
Normal file
2
miners/avalonminer/cgminer/A8X/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from .A821 import CGMinerAvalon821
|
||||
from .A841 import CGMinerAvalon841
|
||||
Reference in New Issue
Block a user