-
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.
fixed some bugs and added support for M20Sv10 and 20
- Loading branch information
1 parent
aaf0d7f
commit 13b583b
Showing
6 changed files
with
54 additions
and
18 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
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,8 +1,24 @@ | ||
from pyasic.miners._backends import BTMiner # noqa - Ignore access to _module | ||
from pyasic.miners._types import M20S # noqa - Ignore access to _module | ||
from pyasic.miners._types import ( # noqa - Ignore access to _module | ||
M20S, | ||
M20SV10, | ||
M20SV20, | ||
) | ||
|
||
|
||
class BTMinerM20S(BTMiner, M20S): | ||
def __init__(self, ip: str) -> None: | ||
super().__init__(ip) | ||
self.ip = ip | ||
|
||
|
||
class BTMinerM20SV10(BTMiner, M20SV10): | ||
def __init__(self, ip: str) -> None: | ||
super().__init__(ip) | ||
self.ip = ip | ||
|
||
|
||
class BTMinerM20SV20(BTMiner, M20SV20): | ||
def __init__(self, ip: str) -> None: | ||
super().__init__(ip) | ||
self.ip = ip |
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