diff --git a/eth/tracers/api.go b/eth/tracers/api.go index 7498585ee53c..eca53ba5f2ac 100644 --- a/eth/tracers/api.go +++ b/eth/tracers/api.go @@ -658,6 +658,14 @@ func (api *API) traceBlockParallel(ctx context.Context, block *types.Block, stat if threads > len(txs) { threads = len(txs) } + + // CHANGE(taiko): mark the first transaction as anchor transaction. + if len(txs) > 0 && api.backend.ChainConfig().Taiko { + if err := txs[0].MarkAsAnchor(); err != nil { + return nil, err + } + } + jobs := make(chan *txTraceTask, threads) for th := 0; th < threads; th++ { pend.Add(1)