bug: fix antminer KS5 using iceriver backend
This commit is contained in:
@@ -13,6 +13,7 @@ class AntminerModels(MinerModelType):
|
||||
KS3 = "KS3"
|
||||
DR5 = "DR5"
|
||||
KS5 = "KS5"
|
||||
KS5Pro = "KS5Pro"
|
||||
L7 = "L7"
|
||||
K7 = "K7"
|
||||
D7 = "D7"
|
||||
|
||||
@@ -14,8 +14,12 @@
|
||||
# limitations under the License. -
|
||||
# ------------------------------------------------------------------------------
|
||||
from pyasic.miners.backends import AntminerModern
|
||||
from pyasic.miners.device.models import KS5
|
||||
from pyasic.miners.device.models.antminer import KS5, KS5Pro
|
||||
|
||||
|
||||
class BMMinerKS5(AntminerModern, KS5):
|
||||
supports_shutdown = False
|
||||
|
||||
|
||||
class BMMinerKS5Pro(AntminerModern, KS5Pro):
|
||||
supports_shutdown = False
|
||||
|
||||
@@ -13,4 +13,4 @@
|
||||
# See the License for the specific language governing permissions and -
|
||||
# limitations under the License. -
|
||||
# ------------------------------------------------------------------------------
|
||||
from .KS5 import BMMinerKS5
|
||||
from .KS5 import BMMinerKS5, BMMinerKS5Pro
|
||||
|
||||
@@ -25,3 +25,12 @@ class KS5(AntMinerMake):
|
||||
expected_hashboards = 3
|
||||
expected_fans = 4
|
||||
algo = MinerAlgo.KHEAVYHASH
|
||||
|
||||
|
||||
class KS5Pro(AntMinerMake):
|
||||
raw_model = MinerModel.ANTMINER.KS5
|
||||
|
||||
expected_chips = 92
|
||||
expected_hashboards = 3
|
||||
expected_fans = 4
|
||||
algo = MinerAlgo.KHEAVYHASH
|
||||
|
||||
@@ -14,4 +14,4 @@
|
||||
# limitations under the License. -
|
||||
# ------------------------------------------------------------------------------
|
||||
from .DR5 import DR5
|
||||
from .KS5 import KS5
|
||||
from .KS5 import KS5, KS5Pro
|
||||
|
||||
@@ -74,6 +74,7 @@ MINER_CLASSES = {
|
||||
"ANTMINER KS3": BMMinerKS3,
|
||||
"ANTMINER DR5": CGMinerDR5,
|
||||
"ANTMINER KS5": BMMinerKS5,
|
||||
"ANTMINER KS5 PRO": BMMinerKS5Pro,
|
||||
"ANTMINER L7": BMMinerL7,
|
||||
"ANTMINER K7": BMMinerK7,
|
||||
"ANTMINER D7": BMMinerD7,
|
||||
|
||||
Reference in New Issue
Block a user