We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fcd5dc3 + 7f0e751 commit 78fb726Copy full SHA for 78fb726
src/ethereum_spec_tools/evm_tools/daemon.py
@@ -59,6 +59,24 @@ def do_POST(self) -> None:
59
f"--state.reward={content['state']['reward']}",
60
]
61
62
+ trace = content.get("trace", False)
63
+ output_basedir = content.get("output-basedir")
64
+ if trace:
65
+ if not output_basedir:
66
+ raise ValueError(
67
+ "`output-basedir` should be provided when `--trace` "
68
+ "is enabled."
69
+ )
70
+ # send full trace output if ``trace`` is ``True``
71
+ args.extend(
72
+ [
73
+ "--trace",
74
+ "--trace.memory",
75
+ "--trace.returndata",
76
+ f"--output.basedir={output_basedir}",
77
+ ]
78
79
+
80
query_string = urlparse(self.path).query
81
if query_string:
82
query = parse_qs(
0 commit comments