Skip to content

Commit

Permalink
Merge pull request #1109 from fselmo/spec-resolver-tracing
Browse files Browse the repository at this point in the history
Add tracing support for daemon
  • Loading branch information
petertdavies authored Feb 13, 2025
2 parents fcd5dc3 + 7f0e751 commit 78fb726
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/ethereum_spec_tools/evm_tools/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,24 @@ def do_POST(self) -> None:
f"--state.reward={content['state']['reward']}",
]

trace = content.get("trace", False)
output_basedir = content.get("output-basedir")
if trace:
if not output_basedir:
raise ValueError(
"`output-basedir` should be provided when `--trace` "
"is enabled."
)
# send full trace output if ``trace`` is ``True``
args.extend(
[
"--trace",
"--trace.memory",
"--trace.returndata",
f"--output.basedir={output_basedir}",
]
)

query_string = urlparse(self.path).query
if query_string:
query = parse_qs(
Expand Down

0 comments on commit 78fb726

Please sign in to comment.