Skip to content

Commit

Permalink
bug: fix pydantic validation error with hashrate tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
UpstreamData committed Dec 10, 2024
1 parent c0dbafb commit 680584c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyasic/config/mining/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ class Config:
arbitrary_types_allowed = True

mode: str = field(init=False, default="hashrate_tuning")
hashrate: int = None
hashrate: int | None = None
algo: TunerAlgoType = field(default_factory=TunerAlgo.default)
scaling: ScalingConfig = None
scaling: ScalingConfig | None = None

@classmethod
def from_dict(cls, dict_conf: dict | None) -> "MiningModeHashrateTune":
Expand Down

0 comments on commit 680584c

Please sign in to comment.