Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
309356243b | ||
|
|
e9b4cc9bd6 | ||
|
|
648c54de93 | ||
|
|
e1ce96ab1b | ||
|
|
86860a8dc4 | ||
|
|
5212641f45 |
@@ -23,7 +23,7 @@ from typing import Any, List, Union
|
||||
|
||||
from pyasic.config import MinerConfig
|
||||
from pyasic.config.mining import MiningModePowerTune
|
||||
from pyasic.data.pools import PoolMetrics
|
||||
from pyasic.data.pools import PoolMetrics, Scheme
|
||||
|
||||
from .boards import HashBoard
|
||||
from .device import DeviceInfo
|
||||
@@ -154,7 +154,11 @@ class MinerData:
|
||||
|
||||
@staticmethod
|
||||
def dict_factory(x):
|
||||
return {k: v for (k, v) in x if not k.startswith("_")}
|
||||
return {
|
||||
k: v.value if isinstance(v, Scheme) else v
|
||||
for (k, v) in x
|
||||
if not k.startswith("_")
|
||||
}
|
||||
|
||||
def __post_init__(self):
|
||||
self._datetime = datetime.now(timezone.utc).astimezone()
|
||||
|
||||
@@ -16,6 +16,7 @@ class AntminerModels(str, Enum):
|
||||
S9i = "S9i"
|
||||
S9j = "S9j"
|
||||
T9 = "T9"
|
||||
D9 = "D9"
|
||||
Z15 = "Z15"
|
||||
Z15Pro = "Z15 Pro"
|
||||
S17 = "S17"
|
||||
|
||||
22
pyasic/miners/antminer/bmminer/X9/D9.py
Normal file
22
pyasic/miners/antminer/bmminer/X9/D9.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.device.models import D9
|
||||
|
||||
|
||||
class BMMinerD9(AntminerModern, D9):
|
||||
pass
|
||||
@@ -14,6 +14,7 @@
|
||||
# limitations under the License. -
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
from .D9 import BMMinerD9
|
||||
from .E9 import BMMinerE9Pro
|
||||
from .S9 import BMMinerS9, BMMinerS9i, BMMinerS9j
|
||||
from .T9 import BMMinerT9
|
||||
|
||||
23
pyasic/miners/device/models/antminer/X9/D9.py
Normal file
23
pyasic/miners/device/models/antminer/X9/D9.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# 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.device.models import MinerModel
|
||||
from pyasic.miners.device.makes import AntMinerMake
|
||||
|
||||
|
||||
class D9(AntMinerMake):
|
||||
raw_model = MinerModel.ANTMINER.D9
|
||||
|
||||
expected_chips = 126
|
||||
@@ -14,6 +14,7 @@
|
||||
# limitations under the License. -
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
from .D9 import D9
|
||||
from .E9 import E9Pro
|
||||
from .S9 import S9, S9i, S9j
|
||||
from .T9 import T9
|
||||
|
||||
@@ -21,6 +21,7 @@ class KS5(IceRiverMake):
|
||||
raw_model = MinerModel.ICERIVER.KS5
|
||||
|
||||
expected_fans = 4
|
||||
expected_chips = 92
|
||||
|
||||
|
||||
class KS5L(IceRiverMake):
|
||||
|
||||
@@ -21,3 +21,4 @@ class A11(InnosiliconMake):
|
||||
raw_model = MinerModel.INNOSILICON.A11
|
||||
|
||||
expected_hashboards = 4
|
||||
expected_chips = 8
|
||||
|
||||
@@ -74,6 +74,7 @@ MINER_CLASSES = {
|
||||
"ANTMINER L7": BMMinerL7,
|
||||
"ANTMINER K7": BMMinerK7,
|
||||
"ANTMINER E9 PRO": BMMinerE9Pro,
|
||||
"ANTMINER D9": BMMinerD9,
|
||||
"ANTMINER S9": BMMinerS9,
|
||||
"ANTMINER S9I": BMMinerS9i,
|
||||
"ANTMINER S9J": BMMinerS9j,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "pyasic"
|
||||
version = "0.62.2"
|
||||
version = "0.62.4"
|
||||
description = "A simplified and standardized interface for Bitcoin ASICs."
|
||||
authors = ["UpstreamData <brett@upstreamdata.ca>"]
|
||||
repository = "https://github.com/UpstreamData/pyasic"
|
||||
|
||||
Reference in New Issue
Block a user