feature: add supports_power_modes flag.
This commit is contained in:
@@ -94,6 +94,7 @@ class AntminerModern(BMMiner):
|
||||
data_locations = ANTMINER_MODERN_DATA_LOC
|
||||
|
||||
supports_shutdown = True
|
||||
supports_power_modes = True
|
||||
|
||||
async def get_config(self) -> MinerConfig:
|
||||
data = await self.web.get_miner_conf()
|
||||
|
||||
@@ -124,6 +124,7 @@ class Auradine(BaseMiner):
|
||||
data_locations = AURADINE_DATA_LOC
|
||||
|
||||
supports_shutdown = True
|
||||
supports_power_modes = True
|
||||
supports_autotuning = True
|
||||
|
||||
async def fault_light_on(self) -> bool:
|
||||
|
||||
@@ -119,6 +119,7 @@ class BTMiner(BaseMiner):
|
||||
data_locations = BTMINER_DATA_LOC
|
||||
|
||||
supports_shutdown = True
|
||||
supports_power_modes = True
|
||||
|
||||
async def _reset_rpc_pwd_to_admin(self, pwd: str):
|
||||
try:
|
||||
|
||||
@@ -75,6 +75,7 @@ class GoldshellMiner(BFGMiner):
|
||||
data_locations = GOLDSHELL_DATA_LOC
|
||||
|
||||
supports_shutdown = True
|
||||
supports_power_modes = True
|
||||
|
||||
async def get_config(self) -> MinerConfig:
|
||||
# get pool data
|
||||
|
||||
@@ -47,6 +47,7 @@ class MinerProtocol(Protocol):
|
||||
data_locations: DataLocations = None
|
||||
|
||||
supports_shutdown: bool = False
|
||||
supports_power_modes: bool = False
|
||||
supports_autotuning: bool = False
|
||||
|
||||
api_ver: str = None
|
||||
|
||||
Reference in New Issue
Block a user