mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 07:36:44 +00:00
fix(eth): mark anchor transaction in traceBlockParallel (#243)
* mark anchor tx * fix comments
This commit is contained in:
parent
ce49aa43bb
commit
8622b2cce0
1 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue