Commit 7ee6dcca authored by Adrian Sutton's avatar Adrian Sutton Committed by GitHub

op-challenger: Fix run-trace to only run mt-cannon in parallel with cannon traces. (#12052)

Previously it was also running it in parallel with kona-asterisc traces, resulting in errors because there were two mt-cannon traces sharing a preimages directory.
parent 05c0421d
...@@ -154,7 +154,7 @@ func (r *Runner) runAndRecordOnce(ctx context.Context, traceType types.TraceType ...@@ -154,7 +154,7 @@ func (r *Runner) runAndRecordOnce(ctx context.Context, traceType types.TraceType
recordError(err, traceType.String(), r.m, r.log) recordError(err, traceType.String(), r.m, r.log)
}() }()
if r.addMTCannonPrestate != (common.Hash{}) && r.addMTCannonPrestateURL != nil { if traceType == types.TraceTypeCannon && r.addMTCannonPrestate != (common.Hash{}) && r.addMTCannonPrestateURL != nil {
wg.Add(1) wg.Add(1)
go func() { go func() {
defer wg.Done() defer wg.Done()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment