add s21 pro support for stock, ePIC (#186)

This commit is contained in:
JP Compagnone
2024-08-09 12:18:14 -04:00
committed by GitHub
parent 13c0407b2d
commit 4a642fd3da
8 changed files with 23 additions and 7 deletions

View File

@@ -44,6 +44,7 @@ class AntminerModels(str, Enum):
S19kProNoPIC = "S19k Pro No PIC"
T19 = "T19"
S21 = "S21"
S21Pro = "S21 Pro"
T21 = "T21"
def __str__(self):

View File

@@ -15,8 +15,12 @@
# ------------------------------------------------------------------------------
from pyasic.miners.backends import AntminerModern
from pyasic.miners.device.models import S21
from pyasic.miners.device.models import S21, S21Pro
class BMMinerS21(AntminerModern, S21):
pass
class BMMinerS21Pro(AntminerModern, S21Pro):
pass

View File

@@ -13,5 +13,5 @@
# See the License for the specific language governing permissions and -
# limitations under the License. -
# ------------------------------------------------------------------------------
from .S21 import BMMinerS21
from .S21 import BMMinerS21, BMMinerS21Pro
from .T21 import BMMinerT21

View File

@@ -15,8 +15,12 @@
# ------------------------------------------------------------------------------
from pyasic.miners.backends import ePIC
from pyasic.miners.device.models import S21
from pyasic.miners.device.models import S21, S21Pro
class ePICS21(ePIC, S21):
pass
class ePICS21Pro(ePIC, S21Pro):
pass

View File

@@ -14,9 +14,7 @@
# limitations under the License. -
# ------------------------------------------------------------------------------
from .S21 import (
ePICS21,
)
from .S21 import ePICS21, ePICS21Pro
from .T21 import (
ePICT21,

View File

@@ -22,3 +22,10 @@ class S21(AntMinerMake):
expected_chips = 108
expected_fans = 4
class S21Pro(AntMinerMake):
raw_model = MinerModel.ANTMINER.S21Pro
expected_chips = 65
expected_fans = 4

View File

@@ -14,5 +14,5 @@
# limitations under the License. -
# ------------------------------------------------------------------------------
from .S21 import S21
from .S21 import S21, S21Pro
from .T21 import T21

View File

@@ -97,6 +97,7 @@ MINER_CLASSES = {
"ANTMINER S19K PRO": BMMinerS19KPro,
"ANTMINER T19": BMMinerT19,
"ANTMINER S21": BMMinerS21,
"ANTMINER S21 PRO": BMMinerS21Pro,
"ANTMINER T21": BMMinerT21,
},
MinerTypes.WHATSMINER: {
@@ -401,6 +402,7 @@ MINER_CLASSES = {
"ANTMINER S19K PRO": ePICS19kPro,
"ANTMINER S19 XP": ePICS19XP,
"ANTMINER S21": ePICS21,
"ANTMINER S21 PRO": ePICS21Pro,
"ANTMINER T21": ePICT21,
"BLOCKMINER 520I": ePICBlockMiner520i,
"BLOCKMINER 720I": ePICBlockMiner720i,