Skip to content

Commit

Permalink
tools: allow tracing support with ethereum-spec-evm
Browse files Browse the repository at this point in the history
  • Loading branch information
danceratopz committed Sep 6, 2023
1 parent 5bf8633 commit f895b3c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/evm_transition_tool/transition_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ def collect_traces(
"""
traces: List[List[Dict]] = []
for i, r in enumerate(receipts):
h = r["transactionHash"]
trace_file_name = f"trace-{i}-{h}.jsonl"
trace_file_name = f"trace-{i}-{r['transactionHash']}.jsonl"
if debug_output_path:
shutil.copy(
os.path.join(temp_dir.name, trace_file_name),
Expand Down Expand Up @@ -296,12 +295,6 @@ def evaluate(
]

if self.trace:
if str(self.default_binary) == "ethereum-spec-evm":
raise Exception(
"`ethereum-spec-evm` tracing is not currently implemented in "
"execution-spec-tests, see "
"https://github.com/ethereum/execution-spec-tests/issues/267."
)
temp_dir = tempfile.TemporaryDirectory()
args.append("--trace")
args.append(f"--output.basedir={temp_dir.name}")
Expand Down

0 comments on commit f895b3c

Please sign in to comment.