diff --git a/internal/services/broadcaster/broadcaster.go b/internal/services/broadcaster/broadcaster.go index 164cc5f..91ea21b 100644 --- a/internal/services/broadcaster/broadcaster.go +++ b/internal/services/broadcaster/broadcaster.go @@ -73,7 +73,7 @@ func (t *broadcaster) runOnceIndexing(ctx context.Context) error { }) for _, txRaw := range txs { - log := t.log.WithField("tx", txRaw.Data) + log := t.log.WithField("tx_id", txRaw.ID) tx, err := t.genTx(ctx, 0, 0, txRaw.Data) if err != nil { @@ -83,10 +83,7 @@ func (t *broadcaster) runOnceIndexing(ctx context.Context) error { gasUsed, err := t.simulateTx(ctx, tx) if err != nil { log.WithError(err).Error("Failed to simulate tx") - - if err = t.deleteTx(ctx, log, &txRaw); err != nil { - return err - } + continue } gasLimit := ApproximateGasLimit(gasUsed)