eth/tracers: Fix traceBlock early abort
This commit is contained in:
parent
68de26e346
commit
9f9285999b
|
@ -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)
|
res, err := api.traceTx(ctx, tx, msg, txctx, blockCtx, statedb, config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
results[i] = &txTraceResult{TxHash: tx.Hash(), Error: err.Error()}
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
results[i] = &txTraceResult{TxHash: tx.Hash(), Result: res}
|
results[i] = &txTraceResult{TxHash: tx.Hash(), Result: res}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue