From c5b37bd613b47d12ce2ccaaab66d288a79429fdd Mon Sep 17 00:00:00 2001 From: ChiaMineJP Date: Sun, 8 Aug 2021 18:58:58 +0900 Subject: [PATCH] Fixed an issue where `use_rust` in `cmds.py` was set to True even if clvm_rs was not imported --- clvm_tools/cmds.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clvm_tools/cmds.py b/clvm_tools/cmds.py index 04e9eda..68a4d2f 100644 --- a/clvm_tools/cmds.py +++ b/clvm_tools/cmds.py @@ -234,9 +234,11 @@ def launch_tool(args, tool_name, default_stage=0): use_rust = ( (tool_name != "run") and not pre_eval_f + and deserialize_and_run_program2 and ( args.backend == "rust" - or (deserialize_and_run_program2 and args.backend != "python") + or + args.backend != "python" ) ) max_cost = max(0, args.max_cost - cost_offset if args.max_cost != 0 else 0)