Skip to content

Commit a028321

Browse files
committed
fix trace transaction
- fix debug trace tasks not being optional - fix trace transaction in ethereum.general profile having missing params
1 parent ac87ff1 commit a028321

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

chainbench/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ def start(
293293
for tag in exclude_tags:
294294
custom_exclude_tags.append(tag)
295295

296+
if not debug_trace_methods:
297+
custom_exclude_tags = custom_exclude_tags + ["trace", "debug"]
298+
296299
locust_options = LocustOptions(
297300
profile_path=profile_path,
298301
host=host,

chainbench/profile/ethereum/general.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def trace_transaction_task(self):
8686
self.make_rpc_call(
8787
name="trace_transaction",
8888
method="debug_traceTransaction",
89+
params=self._transaction_by_hash_params_factory(get_rng()),
8990
),
9091

9192
@task(2)

0 commit comments

Comments
 (0)