added get_model to get the model of the miner, and reformatted the style of the miner factory getting miner to get a different miner for each type of supported miner
This commit is contained in:
10
miners/antminer/X17/bosminer.py
Normal file
10
miners/antminer/X17/bosminer.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from miners.bosminer import BOSminer
|
||||
|
||||
|
||||
class BOSMinerX17(BOSminer):
|
||||
def __init__(self, ip: str) -> None:
|
||||
super().__init__(ip)
|
||||
self.api_type = "BOSMiner"
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"BOSminerX17: {str(self.ip)}"
|
||||
Reference in New Issue
Block a user