feature: add support for more LuxOS models.
This commit is contained in:
@@ -15,8 +15,28 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
from pyasic.miners.backends import LUXMiner
|
||||
from pyasic.miners.models import S19
|
||||
from pyasic.miners.models import S19, S19XP, S19jPro, S19jProPlus, S19kPro, S19Pro
|
||||
|
||||
|
||||
class LUXMinerS19(LUXMiner, S19):
|
||||
pass
|
||||
|
||||
|
||||
class LUXMinerS19Pro(LUXMiner, S19Pro):
|
||||
pass
|
||||
|
||||
|
||||
class LUXMinerS19jPro(LUXMiner, S19jPro):
|
||||
pass
|
||||
|
||||
|
||||
class LUXMinerS19jProPlus(LUXMiner, S19jProPlus):
|
||||
pass
|
||||
|
||||
|
||||
class LUXMinerS19kPro(LUXMiner, S19kPro):
|
||||
pass
|
||||
|
||||
|
||||
class LUXMinerS19XP(LUXMiner, S19XP):
|
||||
pass
|
||||
|
||||
22
pyasic/miners/antminer/luxos/X19/T19.py
Normal file
22
pyasic/miners/antminer/luxos/X19/T19.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 LUXMiner
|
||||
from pyasic.miners.models import T19
|
||||
|
||||
|
||||
class LUXMinerT19(LUXMiner, T19):
|
||||
pass
|
||||
@@ -14,4 +14,12 @@
|
||||
# limitations under the License. -
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
from .S19 import LUXMinerS19
|
||||
from .S19 import (
|
||||
LUXMinerS19,
|
||||
LUXMinerS19jPro,
|
||||
LUXMinerS19jProPlus,
|
||||
LUXMinerS19kPro,
|
||||
LUXMinerS19Pro,
|
||||
LUXMinerS19XP,
|
||||
)
|
||||
from .T19 import LUXMinerT19
|
||||
|
||||
@@ -29,7 +29,6 @@ from pyasic import settings
|
||||
from pyasic.logger import logger
|
||||
from pyasic.miners.antminer import *
|
||||
from pyasic.miners.auradine import *
|
||||
from pyasic.miners.blockminer import *
|
||||
from pyasic.miners.avalonminer import *
|
||||
from pyasic.miners.backends import (
|
||||
Auradine,
|
||||
@@ -46,6 +45,7 @@ from pyasic.miners.backends import (
|
||||
)
|
||||
from pyasic.miners.backends.unknown import UnknownMiner
|
||||
from pyasic.miners.base import AnyMiner
|
||||
from pyasic.miners.blockminer import *
|
||||
from pyasic.miners.goldshell import *
|
||||
from pyasic.miners.innosilicon import *
|
||||
from pyasic.miners.makes import *
|
||||
@@ -407,6 +407,12 @@ MINER_CLASSES = {
|
||||
None: LUXMiner,
|
||||
"ANTMINER S9": LUXMinerS9,
|
||||
"ANTMINER S19": LUXMinerS19,
|
||||
"ANTMINER S19 PRO": LUXMinerS19Pro,
|
||||
"ANTMINER S19J PRO": LUXMinerS19jPro,
|
||||
"ANTMINER S19J PRO+": LUXMinerS19jProPlus,
|
||||
"ANTMINER S19K PRO": LUXMinerS19kPro,
|
||||
"ANTMINER S19 XP": LUXMinerS19XP,
|
||||
"ANTMINER T19": LUXMinerT19,
|
||||
},
|
||||
MinerTypes.AURADINE: {
|
||||
None: type("GoldshellUnknown", (Auradine, AuradineMake), {}),
|
||||
|
||||
Reference in New Issue
Block a user