feature: add stock support for T21.
This commit is contained in:
22
pyasic/miners/antminer/bmminer/X21/T21.py
Normal file
22
pyasic/miners/antminer/bmminer/X21/T21.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 AntminerModern
|
||||||
|
from pyasic.miners.models import T21
|
||||||
|
|
||||||
|
|
||||||
|
class BMMinerT21(AntminerModern, T21):
|
||||||
|
pass
|
||||||
@@ -14,3 +14,4 @@
|
|||||||
# limitations under the License. -
|
# limitations under the License. -
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
from .S21 import BMMinerS21
|
from .S21 import BMMinerS21
|
||||||
|
from .T21 import BMMinerT21
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ MINER_CLASSES = {
|
|||||||
"ANTMINER S19K PRO": BMMinerS19KPro,
|
"ANTMINER S19K PRO": BMMinerS19KPro,
|
||||||
"ANTMINER T19": BMMinerT19,
|
"ANTMINER T19": BMMinerT19,
|
||||||
"ANTMINER S21": BMMinerS21,
|
"ANTMINER S21": BMMinerS21,
|
||||||
|
"ANTMINER T21": BMMinerT21,
|
||||||
},
|
},
|
||||||
MinerTypes.WHATSMINER: {
|
MinerTypes.WHATSMINER: {
|
||||||
None: type("WhatsminerUnknown", (BTMiner, WhatsMinerMake), {}),
|
None: type("WhatsminerUnknown", (BTMiner, WhatsMinerMake), {}),
|
||||||
|
|||||||
Reference in New Issue
Block a user