Skip to content

Commit 78fb726

Browse files
authored
Merge pull request #1109 from fselmo/spec-resolver-tracing
Add tracing support for daemon
2 parents fcd5dc3 + 7f0e751 commit 78fb726

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/ethereum_spec_tools/evm_tools/daemon.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,24 @@ def do_POST(self) -> None:
5959
f"--state.reward={content['state']['reward']}",
6060
]
6161

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+
6280
query_string = urlparse(self.path).query
6381
if query_string:
6482
query = parse_qs(

0 commit comments

Comments
 (0)