eth/tracers: Fix traceBlock early abort

This commit is contained in:
nethoxa 2025-02-13 21:10:36 +01:00
parent 68de26e346
commit 9f9285999b
1 changed files with 2 additions and 1 deletions

View File

@ -634,7 +634,8 @@ func (api *API) traceBlock(ctx context.Context, block *types.Block, config *Trac
}
res, err := api.traceTx(ctx, tx, msg, txctx, blockCtx, statedb, config)
if err != nil {
return nil, err
results[i] = &txTraceResult{TxHash: tx.Hash(), Error: err.Error()}
continue
}
results[i] = &txTraceResult{TxHash: tx.Hash(), Result: res}
}