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 .S9 import S9
from .S9i import S9i
from .T9 import T9 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 .S9 import BMMinerS9
from .S9i import BMMinerS9i
from .T9 import BMMinerT9 from .T9 import BMMinerT9

View File

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

View File

@@ -1,5 +1,5 @@
get_version_retries = 2 get_version_retries = 3
ping_retries = 2 ping_retries = 3
ping_timeout = 3 # Seconds ping_timeout = 3 # Seconds
scan_threads = 300 scan_threads = 300
config_threads = 300 config_threads = 300