Skip to content

Commit

Permalink
bug: fix some issues with hammer miners
Browse files Browse the repository at this point in the history
  • Loading branch information
UpstreamData committed Nov 14, 2024
1 parent 0134273 commit 2523ef8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyasic/miners/backends/hammer.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ async def _get_hashboards(self, rpc_stats: dict = None) -> List[HashBoard]:
hashrate = boards[1].get(f"chain_rate{i}")
if hashrate:
hashboard.hashrate = AlgoHashRate.SHA256(
hashrate, HashUnit.SHA256.GH
float(hashrate), HashUnit.SHA256.GH
).into(self.algo.unit.default)

chips = boards[1].get(f"chain_acn{i}")
Expand Down
2 changes: 2 additions & 0 deletions pyasic/miners/device/models/hammer/DX/D10.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@

class D10(HammerMake):
raw_model = MinerModel.HAMMER.D10

expected_chips = 108
1 change: 1 addition & 0 deletions pyasic/miners/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ async def get_miner(self, ip: str | ipaddress.ip_address) -> AnyMiner | None:
MinerTypes.MARATHON: self.get_miner_model_marathon,
MinerTypes.BITAXE: self.get_miner_model_bitaxe,
MinerTypes.ICERIVER: self.get_miner_model_iceriver,
MinerTypes.HAMMER: self.get_miner_model_hammer,
}
fn = miner_model_fns.get(miner_type)

Expand Down

0 comments on commit 2523ef8

Please sign in to comment.