add support for basic S9is

This commit is contained in:
UpstreamData
2022-05-24 14:43:22 -06:00
parent 87a690eb00
commit 726e7ff0f0
6 changed files with 25 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
from miners import BaseMiner
class S9i(BaseMiner):
def __init__(self, ip: str):
super().__init__()
self.ip = ip
self.model = "S9i"
self.nominal_chips = 63

View File

@@ -1,2 +1,3 @@
from .S9 import S9
from .S9i import S9i
from .T9 import T9

View File

@@ -0,0 +1,8 @@
from miners._backends import BMMiner
from miners._types import S9i
class BMMinerS9i(BMMiner, S9i):
def __init__(self, ip: str) -> None:
super().__init__(ip)
self.ip = ip

View File

@@ -1,2 +1,3 @@
from .S9 import BMMinerS9
from .S9i import BMMinerS9i
from .T9 import BMMinerT9

View File

@@ -30,6 +30,10 @@ MINER_CLASSES = {
"BMMiner": BMMinerS9,
"CGMiner": CGMinerS9,
},
"Antminer S9i": {
"Default": BMMinerS9i,
"BMMiner": BMMinerS9i,
},
"Antminer S17": {
"Default": BMMinerS17,
"BOSMiner+": BOSMinerS17,