bug: fix some issues with rpc renaming.

This commit is contained in:
UpstreamData
2024-01-29 12:32:37 -07:00
parent c443170f78
commit 30cd8b5cfe
7 changed files with 22 additions and 21 deletions

View File

@@ -72,7 +72,7 @@ class BMMiner(BaseMiner):
except APIError:
return self.config
self.config = MinerConfig.from_rpc(pools)
self.config = MinerConfig.from_api(pools)
return self.config
##################################################
@@ -88,11 +88,11 @@ class BMMiner(BaseMiner):
if rpc_version is not None:
try:
self.rpc_ver = rpc_version["VERSION"][0]["API"]
self.api_ver = rpc_version["VERSION"][0]["API"]
except LookupError:
pass
return self.rpc_ver
return self.api_ver
async def _get_fw_ver(self, rpc_version: dict = None) -> Optional[str]:
if rpc_version is None: