feature: add support for whatsminer M30S+ VG40
This commit is contained in:
@@ -77,6 +77,7 @@ details {
|
|||||||
<ul>
|
<ul>
|
||||||
<li><a href="../whatsminer/M3X/#m30svf20">VF20</a></li>
|
<li><a href="../whatsminer/M3X/#m30svf20">VF20</a></li>
|
||||||
<li><a href="../whatsminer/M3X/#m30sve40">VE40</a></li>
|
<li><a href="../whatsminer/M3X/#m30sve40">VE40</a></li>
|
||||||
|
<li><a href="../whatsminer/M3X/#m30svg40">VG40</a></li>
|
||||||
<li><a href="../whatsminer/M3X/#m30svg60">VG60</a></li>
|
<li><a href="../whatsminer/M3X/#m30svg60">VG60</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</details>
|
</details>
|
||||||
|
|||||||
@@ -65,6 +65,14 @@
|
|||||||
show_root_heading: false
|
show_root_heading: false
|
||||||
heading_level: 4
|
heading_level: 4
|
||||||
|
|
||||||
|
## M30S+VG40
|
||||||
|
|
||||||
|
::: pyasic.miners.whatsminer.btminer.M3X.M30S_Plus.BTMinerM30SPlusVG40
|
||||||
|
handler: python
|
||||||
|
options:
|
||||||
|
show_root_heading: false
|
||||||
|
heading_level: 4
|
||||||
|
|
||||||
## M30S+VG60
|
## M30S+VG60
|
||||||
|
|
||||||
::: pyasic.miners.whatsminer.btminer.M3X.M30S_Plus.BTMinerM30SPlusVG60
|
::: pyasic.miners.whatsminer.btminer.M3X.M30S_Plus.BTMinerM30SPlusVG60
|
||||||
|
|||||||
@@ -32,6 +32,14 @@ class M30SPlusVG60(BaseMiner): # noqa - ignore ABC method implementation
|
|||||||
self.nominal_chips = 86
|
self.nominal_chips = 86
|
||||||
self.fan_count = 2
|
self.fan_count = 2
|
||||||
|
|
||||||
|
class M30SPlusVG40(BaseMiner): # noqa - ignore ABC method implementation
|
||||||
|
def __init__(self, ip: str):
|
||||||
|
super().__init__()
|
||||||
|
self.ip = ip
|
||||||
|
self.model = "M30S+ VG40"
|
||||||
|
self.nominal_chips = 105
|
||||||
|
self.fan_count = 2
|
||||||
|
|
||||||
|
|
||||||
class M30SPlusVE40(BaseMiner): # noqa - ignore ABC method implementation
|
class M30SPlusVE40(BaseMiner): # noqa - ignore ABC method implementation
|
||||||
def __init__(self, ip: str):
|
def __init__(self, ip: str):
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from .M30S import M30S, M30SV50, M30SVE10, M30SVE20, M30SVG20
|
from .M30S import M30S, M30SV50, M30SVE10, M30SVE20, M30SVG20
|
||||||
from .M30S_Plus import M30SPlus, M30SPlusVE40, M30SPlusVF20, M30SPlusVG60
|
from .M30S_Plus import M30SPlus, M30SPlusVE40, M30SPlusVF20, M30SPlusVG60, M30SPlusVG40
|
||||||
from .M30S_Plus_Plus import (
|
from .M30S_Plus_Plus import (
|
||||||
M30SPlusPlus,
|
M30SPlusPlus,
|
||||||
M30SPlusPlusVG30,
|
M30SPlusPlusVG30,
|
||||||
|
|||||||
@@ -183,6 +183,7 @@ MINER_CLASSES = {
|
|||||||
"BTMiner": BTMinerM30SPlus,
|
"BTMiner": BTMinerM30SPlus,
|
||||||
"F20": BTMinerM30SPlusVF20,
|
"F20": BTMinerM30SPlusVF20,
|
||||||
"E40": BTMinerM30SPlusVE40,
|
"E40": BTMinerM30SPlusVE40,
|
||||||
|
"G40": BTMinerM30SPlusVG40,
|
||||||
"G60": BTMinerM30SPlusVG60,
|
"G60": BTMinerM30SPlusVG60,
|
||||||
},
|
},
|
||||||
"M30S++": {
|
"M30S++": {
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ from pyasic.miners._types import ( # noqa - Ignore access to _module
|
|||||||
M30SPlusVE40,
|
M30SPlusVE40,
|
||||||
M30SPlusVF20,
|
M30SPlusVF20,
|
||||||
M30SPlusVG60,
|
M30SPlusVG60,
|
||||||
|
M30SPlusVG40,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -39,6 +40,12 @@ class BTMinerM30SPlusVE40(BTMiner, M30SPlusVE40):
|
|||||||
self.ip = ip
|
self.ip = ip
|
||||||
|
|
||||||
|
|
||||||
|
class BTMinerM30SPlusVG40(BTMiner, M30SPlusVG40):
|
||||||
|
def __init__(self, ip: str) -> None:
|
||||||
|
super().__init__(ip)
|
||||||
|
self.ip = ip
|
||||||
|
|
||||||
|
|
||||||
class BTMinerM30SPlusVG60(BTMiner, M30SPlusVG60):
|
class BTMinerM30SPlusVG60(BTMiner, M30SPlusVG60):
|
||||||
def __init__(self, ip: str) -> None:
|
def __init__(self, ip: str) -> None:
|
||||||
super().__init__(ip)
|
super().__init__(ip)
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ from .M30S_Plus import (
|
|||||||
BTMinerM30SPlus,
|
BTMinerM30SPlus,
|
||||||
BTMinerM30SPlusVE40,
|
BTMinerM30SPlusVE40,
|
||||||
BTMinerM30SPlusVF20,
|
BTMinerM30SPlusVF20,
|
||||||
|
BTMinerM30SPlusVG40,
|
||||||
BTMinerM30SPlusVG60,
|
BTMinerM30SPlusVG60,
|
||||||
)
|
)
|
||||||
from .M30S_Plus_Plus import (
|
from .M30S_Plus_Plus import (
|
||||||
|
|||||||
Reference in New Issue
Block a user