remove tuned from MinerConfig
This commit is contained in:
@@ -252,7 +252,6 @@ class MiningModeHashrateTune(MinerConfigValue):
|
||||
hashrate: int = None
|
||||
throttle_limit: int = None
|
||||
throttle_step: int = None
|
||||
tuned: bool = False
|
||||
algo: TunerAlgo = field(default_factory=TunerAlgo.default)
|
||||
|
||||
@classmethod
|
||||
@@ -264,8 +263,6 @@ class MiningModeHashrateTune(MinerConfigValue):
|
||||
cls_conf["throttle_limit"] = dict_conf["throttle_limit"]
|
||||
if dict_conf.get("throttle_step"):
|
||||
cls_conf["throttle_step"] = dict_conf["throttle_step"]
|
||||
if dict_conf.get("tuned"):
|
||||
cls_conf["tuned"] = dict_conf["tuned"]
|
||||
if dict_conf.get("algo"):
|
||||
cls_conf["algo"] = TunerAlgo.from_dict(dict_conf["algo"])
|
||||
|
||||
@@ -443,13 +440,11 @@ class MiningModeConfig(MinerConfigOption):
|
||||
throttle_step=algo_info["VoltageOptimizer"].get(
|
||||
"Throttle Step"
|
||||
),
|
||||
tuned=algo_info["VoltageOptimizer"].get("Optimized"),
|
||||
algo=TunerAlgo.voltage_optimizer(),
|
||||
)
|
||||
else:
|
||||
return cls.hashrate_tuning(
|
||||
hashrate=algo_info["ChipTune"].get("Target"),
|
||||
tuned=algo_info["ChipTune"].get("Optimized"),
|
||||
algo=TunerAlgo.chip_tune(),
|
||||
)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user