add s21 pro support for stock, ePIC (#186)
This commit is contained in:
@@ -44,6 +44,7 @@ class AntminerModels(str, Enum):
|
|||||||
S19kProNoPIC = "S19k Pro No PIC"
|
S19kProNoPIC = "S19k Pro No PIC"
|
||||||
T19 = "T19"
|
T19 = "T19"
|
||||||
S21 = "S21"
|
S21 = "S21"
|
||||||
|
S21Pro = "S21 Pro"
|
||||||
T21 = "T21"
|
T21 = "T21"
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|||||||
@@ -15,8 +15,12 @@
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners.backends import AntminerModern
|
from pyasic.miners.backends import AntminerModern
|
||||||
from pyasic.miners.device.models import S21
|
from pyasic.miners.device.models import S21, S21Pro
|
||||||
|
|
||||||
|
|
||||||
class BMMinerS21(AntminerModern, S21):
|
class BMMinerS21(AntminerModern, S21):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class BMMinerS21Pro(AntminerModern, S21Pro):
|
||||||
|
pass
|
||||||
|
|||||||
@@ -13,5 +13,5 @@
|
|||||||
# See the License for the specific language governing permissions and -
|
# See the License for the specific language governing permissions and -
|
||||||
# limitations under the License. -
|
# limitations under the License. -
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
from .S21 import BMMinerS21
|
from .S21 import BMMinerS21, BMMinerS21Pro
|
||||||
from .T21 import BMMinerT21
|
from .T21 import BMMinerT21
|
||||||
|
|||||||
@@ -15,8 +15,12 @@
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from pyasic.miners.backends import ePIC
|
from pyasic.miners.backends import ePIC
|
||||||
from pyasic.miners.device.models import S21
|
from pyasic.miners.device.models import S21, S21Pro
|
||||||
|
|
||||||
|
|
||||||
class ePICS21(ePIC, S21):
|
class ePICS21(ePIC, S21):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class ePICS21Pro(ePIC, S21Pro):
|
||||||
|
pass
|
||||||
|
|||||||
@@ -14,9 +14,7 @@
|
|||||||
# limitations under the License. -
|
# limitations under the License. -
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .S21 import (
|
from .S21 import ePICS21, ePICS21Pro
|
||||||
ePICS21,
|
|
||||||
)
|
|
||||||
|
|
||||||
from .T21 import (
|
from .T21 import (
|
||||||
ePICT21,
|
ePICT21,
|
||||||
|
|||||||
@@ -22,3 +22,10 @@ class S21(AntMinerMake):
|
|||||||
|
|
||||||
expected_chips = 108
|
expected_chips = 108
|
||||||
expected_fans = 4
|
expected_fans = 4
|
||||||
|
|
||||||
|
|
||||||
|
class S21Pro(AntMinerMake):
|
||||||
|
raw_model = MinerModel.ANTMINER.S21Pro
|
||||||
|
|
||||||
|
expected_chips = 65
|
||||||
|
expected_fans = 4
|
||||||
|
|||||||
@@ -14,5 +14,5 @@
|
|||||||
# limitations under the License. -
|
# limitations under the License. -
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
from .S21 import S21
|
from .S21 import S21, S21Pro
|
||||||
from .T21 import T21
|
from .T21 import T21
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ MINER_CLASSES = {
|
|||||||
"ANTMINER S19K PRO": BMMinerS19KPro,
|
"ANTMINER S19K PRO": BMMinerS19KPro,
|
||||||
"ANTMINER T19": BMMinerT19,
|
"ANTMINER T19": BMMinerT19,
|
||||||
"ANTMINER S21": BMMinerS21,
|
"ANTMINER S21": BMMinerS21,
|
||||||
|
"ANTMINER S21 PRO": BMMinerS21Pro,
|
||||||
"ANTMINER T21": BMMinerT21,
|
"ANTMINER T21": BMMinerT21,
|
||||||
},
|
},
|
||||||
MinerTypes.WHATSMINER: {
|
MinerTypes.WHATSMINER: {
|
||||||
@@ -401,6 +402,7 @@ MINER_CLASSES = {
|
|||||||
"ANTMINER S19K PRO": ePICS19kPro,
|
"ANTMINER S19K PRO": ePICS19kPro,
|
||||||
"ANTMINER S19 XP": ePICS19XP,
|
"ANTMINER S19 XP": ePICS19XP,
|
||||||
"ANTMINER S21": ePICS21,
|
"ANTMINER S21": ePICS21,
|
||||||
|
"ANTMINER S21 PRO": ePICS21Pro,
|
||||||
"ANTMINER T21": ePICT21,
|
"ANTMINER T21": ePICT21,
|
||||||
"BLOCKMINER 520I": ePICBlockMiner520i,
|
"BLOCKMINER 520I": ePICBlockMiner520i,
|
||||||
"BLOCKMINER 720I": ePICBlockMiner720i,
|
"BLOCKMINER 720I": ePICBlockMiner720i,
|
||||||
|
|||||||
Reference in New Issue
Block a user