minor: reformat a bunch of files to try to make backends more cohesive, add static dict for get_data instead of using inspect, refactored graphql into a bosminer web API, and added supports_autotuning and supports_shutdown attributes to miners.
This commit is contained in:
@@ -46,6 +46,12 @@ class BaseWebAPI(ABC):
|
||||
) -> dict:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
async def multicommand(
|
||||
self, *commands: str, ignore_errors: bool = False, allow_warning: bool = True
|
||||
) -> dict:
|
||||
pass
|
||||
|
||||
def _check_commands(self, *commands):
|
||||
allowed_commands = self.get_commands()
|
||||
return_commands = []
|
||||
|
||||
Reference in New Issue
Block a user