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