add new Antminer models (S19jPro+ and S19k Pro) (#75)

* Add S19jPro+ and S19K Pro

* typo
This commit is contained in:
JP Compagnone
2023-12-08 10:34:30 -05:00
committed by GitHub
parent 362b204c91
commit 9f42e6a3be
5 changed files with 30 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ from pyasic.miners.types import (
S19Pro, S19Pro,
S19j, S19j,
S19jPro, S19jPro,
S19jProPlus,
S19kPro,
S19XP, S19XP,
) )
@@ -36,5 +38,11 @@ class ePICS19j(ePIC, S19j):
class ePICS19jPro(ePIC, S19jPro): class ePICS19jPro(ePIC, S19jPro):
pass pass
class ePICS19jProPlus(ePIC, S19jProPlus):
pass
class ePICS19kPro(ePIC, S19kPro):
pass
class ePICS19XP(ePIC, S19XP): class ePICS19XP(ePIC, S19XP):
pass pass

View File

@@ -19,5 +19,7 @@ from .S19 import (
ePICS19Pro, ePICS19Pro,
ePICS19j, ePICS19j,
ePICS19jPro, ePICS19jPro,
ePICS19jProPlus,
ePICS19kPro,
ePICS19XP, ePICS19XP,
) )

View File

@@ -354,6 +354,8 @@ MINER_CLASSES = {
"ANTMINER S19 PRO": ePICS19Pro, "ANTMINER S19 PRO": ePICS19Pro,
"ANTMINER S19J": ePICS19j, "ANTMINER S19J": ePICS19j,
"ANTMINER S19J PRO": ePICS19jPro, "ANTMINER S19J PRO": ePICS19jPro,
"ANTMINER S19J PRO+": ePICS19jProPlus,
"ANTMINER S19K PRO": ePICS19kPro,
"ANTMINER S19 XP": ePICS19XP, "ANTMINER S19 XP": ePICS19XP,
}, },
MinerTypes.HIVEON: { MinerTypes.HIVEON: {

View File

@@ -124,6 +124,22 @@ class S19jPro(AntMiner): # noqa - ignore ABC method implementation
self.nominal_chips = 126 self.nominal_chips = 126
self.fan_count = 4 self.fan_count = 4
class S19jProPlus(AntMiner): # noqa - ignore ABC method implementation
def __init__(self, ip: str, api_ver: str = "0.0.0"):
super().__init__(ip, api_ver)
self.ip = ip
self.model = "S19j Pro+"
self.nominal_chips = 120
self.fan_count = 4
class S19kPro(AntMiner): # noqa - ignore ABC method implementation
def __init__(self, ip: str, api_ver: str = "0.0.0"):
super().__init__(ip, api_ver)
self.ip = ip
self.model = "S19k Pro"
self.nominal_chips = 77
self.fan_count = 4
class S19L(AntMiner): # noqa - ignore ABC method implementation class S19L(AntMiner): # noqa - ignore ABC method implementation
def __init__(self, ip: str, api_ver: str = "0.0.0"): def __init__(self, ip: str, api_ver: str = "0.0.0"):

View File

@@ -24,6 +24,8 @@ from .S19 import (
S19j, S19j,
S19jNoPIC, S19jNoPIC,
S19jPro, S19jPro,
S19jProPlus,
S19kPro,
S19NoPIC, S19NoPIC,
S19Plus, S19Plus,
S19Pro, S19Pro,