mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
eth/tracers: Fix traceBlock early abort
This commit is contained in:
parent
68de26e346
commit
9f9285999b
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue