-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: change sticker hashrate to GH for Hammer and VolcMiner (#264)
* change sticker hashrate to GH * clean up hashrate for Hammer/Volcminer * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
23890fa
commit 748279c
Showing
3 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
from pyasic.device.algorithm.hashrate.unit.scrypt import ScryptUnit | ||
from pyasic.device.algorithm.scrypt import ScryptHashRate | ||
from pyasic.miners.backends import BlackMiner | ||
from pyasic.miners.device.models import D10 | ||
|
||
|
||
class HammerD10(BlackMiner, D10): | ||
sticker_hashrate = 5000 | ||
sticker_hashrate = ScryptHashRate(rate=5.0, unit=ScryptUnit.GH) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
from pyasic.device.algorithm.hashrate.unit.scrypt import ScryptUnit | ||
from pyasic.device.algorithm.scrypt import ScryptHashRate | ||
from pyasic.miners.backends import BlackMiner | ||
from pyasic.miners.device.models import D1 | ||
|
||
|
||
class VolcMinerD1(BlackMiner, D1): | ||
sticker_hashrate = 15150 | ||
sticker_hashrate = ScryptHashRate(rate=15.15, unit=ScryptUnit.GH) |