bug: fix incorrect scrypt unit base type

This commit is contained in:
Upstream Data
2024-12-10 11:08:03 -07:00
parent 9b8e547f86
commit ab30988614

View File

@@ -1,9 +1,9 @@
from __future__ import annotations from __future__ import annotations
from enum import IntEnum from .base import AlgoHashRateUnitType
class ScryptUnit(IntEnum): class ScryptUnit(AlgoHashRateUnitType):
H = 1 H = 1
KH = int(H) * 1000 KH = int(H) * 1000
MH = int(KH) * 1000 MH = int(KH) * 1000