Skip to content

Commit

Permalink
Fix block tracing error message
Browse files Browse the repository at this point in the history
  • Loading branch information
hkalodner committed Jun 2, 2022
1 parent d901275 commit d71a261
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/arb-rpc-node/web3/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,14 +435,14 @@ func (t *Trace) block(ctx context.Context, blockNum rpc.BlockNumberOrHash, trace
res := make([]*rawTxTrace, 0, len(txResults))
for i := uint64(0); i < blockLog.BlockStats.TxCount.Uint64(); i++ {
txRes := txResults[i]
failMsg := logger.
Warn().
Uint64("block", blockInfo.Header.Number.Uint64()).
Str("txhash", txRes.IncomingRequest.MessageID.String()).
Err(err)
txTrace, err := t.traceTransaction(ctx, cursor, txRes, logIndex, traceDestroyed)
if err != nil {
failMsg.Msg("error getting trace for transaction")
logger.
Warn().
Uint64("block", blockInfo.Header.Number.Uint64()).
Str("txhash", txRes.IncomingRequest.MessageID.String()).
Err(err).
Msg("error getting trace for transaction")
continue
}
res = append(res, txTrace)
Expand Down

0 comments on commit d71a261

Please sign in to comment.