feature: Add Support for Avalon Nano 3s (#329)
This commit is contained in:
@@ -451,6 +451,7 @@ class AvalonminerModels(MinerModelType):
|
||||
Avalon1246 = "Avalon 1246"
|
||||
Avalon1566 = "Avalon 1566"
|
||||
AvalonNano3 = "Avalon Nano 3"
|
||||
AvalonNano3s = "Avalon Nano 3s"
|
||||
|
||||
def __str__(self):
|
||||
return self.value
|
||||
|
||||
@@ -14,4 +14,4 @@
|
||||
# limitations under the License. -
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
from .nano3 import CGMinerAvalonNano3
|
||||
from .nano3 import CGMinerAvalonNano3, CGMinerAvalonNano3s
|
||||
|
||||
@@ -24,7 +24,7 @@ from pyasic.miners.data import (
|
||||
RPCAPICommand,
|
||||
WebAPICommand,
|
||||
)
|
||||
from pyasic.miners.device.models import AvalonNano3
|
||||
from pyasic.miners.device.models import AvalonNano3, AvalonNano3s
|
||||
from pyasic.web.avalonminer import AvalonMinerWebAPI
|
||||
|
||||
AVALON_NANO_DATA_LOC = DataLocations(
|
||||
@@ -105,3 +105,7 @@ class CGMinerAvalonNano3(AvalonMiner, AvalonNano3):
|
||||
return mac.upper()
|
||||
except (KeyError, ValueError):
|
||||
pass
|
||||
|
||||
|
||||
class CGMinerAvalonNano3s(AvalonMiner, AvalonNano3s):
|
||||
pass
|
||||
|
||||
@@ -1 +1 @@
|
||||
from .nano3 import AvalonNano3
|
||||
from .nano3 import AvalonNano3, AvalonNano3s
|
||||
|
||||
@@ -10,3 +10,12 @@ class AvalonNano3(AvalonMinerMake):
|
||||
expected_chips = 10
|
||||
expected_fans = 1
|
||||
algo = MinerAlgo.SHA256
|
||||
|
||||
|
||||
class AvalonNano3s(AvalonMinerMake):
|
||||
raw_model = MinerModel.AVALONMINER.AvalonNano3s
|
||||
|
||||
expected_hashboards = 1
|
||||
expected_chips = 12
|
||||
expected_fans = 1
|
||||
algo = MinerAlgo.SHA256
|
||||
|
||||
@@ -506,6 +506,7 @@ MINER_CLASSES = {
|
||||
"AVALONMINER 1166PRO": CGMinerAvalon1166Pro,
|
||||
"AVALONMINER 1246": CGMinerAvalon1246,
|
||||
"AVALONMINER NANO3": CGMinerAvalonNano3,
|
||||
"AVALON NANO3S": CGMinerAvalonNano3s,
|
||||
"AVALONMINER 15-194": CGMinerAvalon1566,
|
||||
},
|
||||
MinerTypes.INNOSILICON: {
|
||||
|
||||
Reference in New Issue
Block a user