bug: add support for S19ProPlus
This commit is contained in:
26
pyasic/miners/btc/_types/antminer/X19/S19_Pro_Plus.py
Normal file
26
pyasic/miners/btc/_types/antminer/X19/S19_Pro_Plus.py
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# Copyright 2022 Upstream Data Inc -
|
||||||
|
# -
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
|
# you may not use this file except in compliance with the License. -
|
||||||
|
# You may obtain a copy of the License at -
|
||||||
|
# -
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0 -
|
||||||
|
# -
|
||||||
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from pyasic.miners.makes import AntMiner
|
||||||
|
|
||||||
|
|
||||||
|
class S19ProPlus(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 = "S19 Pro+"
|
||||||
|
self.nominal_chips = 120
|
||||||
|
self.fan_count = 4
|
||||||
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
from .S19 import S19
|
from .S19 import S19
|
||||||
from .S19_Pro import S19Pro
|
from .S19_Pro import S19Pro
|
||||||
|
from .S19_Pro_Plus import S19ProPlus
|
||||||
from .S19_XP import S19XP
|
from .S19_XP import S19XP
|
||||||
from .S19a import S19a
|
from .S19a import S19a
|
||||||
from .S19a_Pro import S19aPro
|
from .S19a_Pro import S19aPro
|
||||||
|
|||||||
22
pyasic/miners/btc/antminer/bmminer/X19/S19_Pro_Plus.py
Normal file
22
pyasic/miners/btc/antminer/bmminer/X19/S19_Pro_Plus.py
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# Copyright 2022 Upstream Data Inc -
|
||||||
|
# -
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); -
|
||||||
|
# you may not use this file except in compliance with the License. -
|
||||||
|
# You may obtain a copy of the License at -
|
||||||
|
# -
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0 -
|
||||||
|
# -
|
||||||
|
# Unless required by applicable law or agreed to in writing, software -
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, -
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -
|
||||||
|
# See the License for the specific language governing permissions and -
|
||||||
|
# limitations under the License. -
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from pyasic.miners.backends import AntminerModern
|
||||||
|
from pyasic.miners.btc._types import S19ProPlus # noqa - Ignore access to _module
|
||||||
|
|
||||||
|
|
||||||
|
class BMMinerS19ProPlus(AntminerModern, S19ProPlus):
|
||||||
|
pass
|
||||||
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
from .S19 import BMMinerS19
|
from .S19 import BMMinerS19
|
||||||
from .S19_Pro import BMMinerS19Pro
|
from .S19_Pro import BMMinerS19Pro
|
||||||
|
from .S19_Pro_Plus import BMMinerS19ProPlus
|
||||||
from .S19_XP import BMMinerS19XP
|
from .S19_XP import BMMinerS19XP
|
||||||
from .S19a import BMMinerS19a
|
from .S19a import BMMinerS19a
|
||||||
from .S19a_Pro import BMMinerS19aPro
|
from .S19a_Pro import BMMinerS19aPro
|
||||||
|
|||||||
@@ -168,6 +168,10 @@ MINER_CLASSES = {
|
|||||||
"BOSMiner+": BOSMinerS19jNoPIC,
|
"BOSMiner+": BOSMinerS19jNoPIC,
|
||||||
"BMMiner": BMMinerS19jNoPIC,
|
"BMMiner": BMMinerS19jNoPIC,
|
||||||
},
|
},
|
||||||
|
"AANTMINER S19 PRO+": {
|
||||||
|
"Default": BMMinerS19ProPlus,
|
||||||
|
"BMMiner": BMMinerS19ProPlus,
|
||||||
|
},
|
||||||
"ANTMINER S19J PRO": {
|
"ANTMINER S19J PRO": {
|
||||||
"Default": BMMinerS19jPro,
|
"Default": BMMinerS19jPro,
|
||||||
"BOSMiner+": BOSMinerS19jPro,
|
"BOSMiner+": BOSMinerS19jPro,
|
||||||
@@ -490,7 +494,7 @@ MINER_CLASSES = {
|
|||||||
"H40": BTMinerM50SPlusVH40,
|
"H40": BTMinerM50SPlusVH40,
|
||||||
"J30": BTMinerM50SPlusVJ30,
|
"J30": BTMinerM50SPlusVJ30,
|
||||||
},
|
},
|
||||||
"M50S+": {
|
"M50S++": {
|
||||||
"Default": BTMinerM50SPlusPlusVK10,
|
"Default": BTMinerM50SPlusPlusVK10,
|
||||||
"BTMiner": BTMinerM50SPlusPlusVK10,
|
"BTMiner": BTMinerM50SPlusPlusVK10,
|
||||||
"K10": BTMinerM50SPlusPlusVK10,
|
"K10": BTMinerM50SPlusPlusVK10,
|
||||||
|
|||||||
Reference in New Issue
Block a user