refactor: remove config prints.
This commit is contained in:
@@ -168,42 +168,3 @@ def merge(a: dict, b: dict) -> dict:
|
|||||||
if k not in ret.keys():
|
if k not in ret.keys():
|
||||||
ret[k] = v
|
ret[k] = v
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
config = MinerConfig(
|
|
||||||
pools=PoolConfig.simple(
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"url": "stratum+tcp://stratum.test.io:3333",
|
|
||||||
"user": "user.test",
|
|
||||||
"password": "123",
|
|
||||||
}
|
|
||||||
]
|
|
||||||
),
|
|
||||||
mining_mode=MiningModeConfig.power_tuning(3000),
|
|
||||||
temperature=TemperatureConfig(hot=100, danger=110),
|
|
||||||
fan_mode=FanModeConfig.manual(minimum_fans=2, speed=70),
|
|
||||||
power_scaling=PowerScalingConfig.enabled(
|
|
||||||
power_step=100,
|
|
||||||
minimum_power=2400,
|
|
||||||
shutdown_enabled=PowerScalingShutdown.enabled(duration=3),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
print(config)
|
|
||||||
# print("WM:", config.as_wm())
|
|
||||||
# print("AM Modern:", config.as_am_modern())
|
|
||||||
# print("AM Old:", config.as_am_old())
|
|
||||||
# print("GS:", config.as_goldshell())
|
|
||||||
# print("Avalon:", config.as_avalon())
|
|
||||||
# print("Inno:", config.as_inno())
|
|
||||||
# print("BOS+ .toml:", config.as_bosminer())
|
|
||||||
# print("BOS+ .toml as toml:")
|
|
||||||
# print(toml.dumps(config.as_bosminer()))
|
|
||||||
# print(config.as_bos_grpc())
|
|
||||||
dict_config = config.as_dict()
|
|
||||||
parsed_conf = MinerConfig.from_dict(dict_config)
|
|
||||||
print(parsed_conf)
|
|
||||||
# bos_parsed = MinerConfig.from_bosminer(config.as_bosminer())
|
|
||||||
# print(bos_parsed)
|
|
||||||
# print(bos_parsed == config)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user