feature: add partial support for M50S+VK20
This commit is contained in:
@@ -263,6 +263,7 @@ MINER_CLASSES = {
|
||||
"M50S+VH30": BTMinerM50SPlusVH30,
|
||||
"M50S+VH40": BTMinerM50SPlusVH40,
|
||||
"M50S+VJ30": BTMinerM50SPlusVJ30,
|
||||
"M50S+VK20": BTMinerM50SPlusVK20,
|
||||
"M50S++VK10": BTMinerM50SPlusPlusVK10,
|
||||
"M50S++VK20": BTMinerM50SPlusPlusVK20,
|
||||
"M50S++VK30": BTMinerM50SPlusPlusVK30,
|
||||
|
||||
@@ -53,3 +53,15 @@ class M50SPlusVJ30(WhatsMiner): # noqa - ignore ABC method implementation
|
||||
"Unknown chip count for miner type M50S+ VJ30, please open an issue on GitHub (https://github.com/UpstreamData/pyasic)."
|
||||
)
|
||||
self.fan_count = 2
|
||||
|
||||
|
||||
class M50SPlusVK20(WhatsMiner): # 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 = "M50S+ VK20"
|
||||
self.nominal_chips = 0
|
||||
warnings.warn(
|
||||
"Unknown chip count for miner type M50S+ VK20, please open an issue on GitHub (https://github.com/UpstreamData/pyasic)."
|
||||
)
|
||||
self.fan_count = 2
|
||||
|
||||
@@ -38,7 +38,7 @@ from .M50S import (
|
||||
M50SVJ20,
|
||||
M50SVJ30,
|
||||
)
|
||||
from .M50S_Plus import M50SPlusVH30, M50SPlusVH40, M50SPlusVJ30
|
||||
from .M50S_Plus import M50SPlusVH30, M50SPlusVH40, M50SPlusVJ30, M50SPlusVK20
|
||||
from .M50S_Plus_Plus import M50SPlusPlusVK10, M50SPlusPlusVK20, M50SPlusPlusVK30
|
||||
from .M53 import M53VH30
|
||||
from .M53S import M53SVH30
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
from pyasic.miners.backends import M5X
|
||||
from pyasic.miners.types import M50SPlusVH30, M50SPlusVH40, M50SPlusVJ30
|
||||
from pyasic.miners.types import M50SPlusVH30, M50SPlusVH40, M50SPlusVJ30, M50SPlusVK20
|
||||
|
||||
|
||||
class BTMinerM50SPlusVH30(M5X, M50SPlusVH30):
|
||||
@@ -28,3 +28,7 @@ class BTMinerM50SPlusVH40(M5X, M50SPlusVH40):
|
||||
|
||||
class BTMinerM50SPlusVJ30(M5X, M50SPlusVJ30):
|
||||
pass
|
||||
|
||||
|
||||
class BTMinerM50SPlusVK20(M5X, M50SPlusVK20):
|
||||
pass
|
||||
|
||||
@@ -38,7 +38,12 @@ from .M50S import (
|
||||
BTMinerM50SVJ20,
|
||||
BTMinerM50SVJ30,
|
||||
)
|
||||
from .M50S_Plus import BTMinerM50SPlusVH30, BTMinerM50SPlusVH40, BTMinerM50SPlusVJ30
|
||||
from .M50S_Plus import (
|
||||
BTMinerM50SPlusVH30,
|
||||
BTMinerM50SPlusVH40,
|
||||
BTMinerM50SPlusVJ30,
|
||||
BTMinerM50SPlusVK20,
|
||||
)
|
||||
from .M50S_Plus_Plus import (
|
||||
BTMinerM50SPlusPlusVK10,
|
||||
BTMinerM50SPlusPlusVK20,
|
||||
|
||||
Reference in New Issue
Block a user