mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 22:26:42 +00:00
Make trace block resilient to individual trace tx errors (#36)
* Make trace block resilient to individual trace tx errors * add logging * add more logging * add more logging 2 * add more logging 3 * cleanup all logs
This commit is contained in:
parent
da7da77412
commit
bf6b5923d7
1 changed files with 3 additions and 2 deletions
|
|
@ -613,10 +613,11 @@ 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()}
|
||||
} else {
|
||||
results[i] = &txTraceResult{TxHash: tx.Hash(), Result: res}
|
||||
}
|
||||
}
|
||||
return results, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue