changed bos get_bad_boards to be consistent with hive

This commit is contained in:
UpstreamData
2022-01-21 16:30:26 -07:00
parent a93027369e
commit 6d9de87fb8
2 changed files with 5 additions and 8 deletions

View File

@@ -1,7 +1,4 @@
import asyncio
from miners.bmminer import BMMiner
import json
class HiveonT9(BMMiner):

View File

@@ -112,13 +112,13 @@ class BOSMiner(BaseMiner):
async def get_bad_boards(self) -> list:
"""Checks for and provides list of non working boards."""
devs = await self.api.devdetails()
bad = 0
bad_boards = []
chains = devs['DEVDETAILS']
for chain in chains:
if chain['Chips'] == 0:
bad += 1
if bad > 0:
return [str(self.ip), bad]
if not chain['Chips'] == 63:
bad_boards.append({"board": chain["ID"], "chain": chain["ID"], "chip_count": chain['Chips'], "chip_status": "o"*chain['Chips']})
return bad_boards
async def check_good_boards(self) -> str:
"""Checks for and provides list for working boards."""