feature: make is_mining abstract method.

This commit is contained in:
UpstreamData
2023-06-23 14:34:44 -06:00
parent 65d1695ce4
commit 7d1a702804

View File

@@ -345,13 +345,14 @@ class BaseMiner(ABC):
"""
pass
@abstractmethod
async def is_mining(self, *args, **kwargs) -> Optional[bool]:
"""Check whether the miner is mining.
Returns:
A boolean value representing if the miner is mining.
"""
return None
pass
async def _get_data(self, allow_warning: bool, data_to_get: list = None) -> dict:
if not data_to_get: