diff --git a/p2p/pkg/preconfirmation/tracker/tracker.go b/p2p/pkg/preconfirmation/tracker/tracker.go index bddfa3177..0c4bf53aa 100644 --- a/p2p/pkg/preconfirmation/tracker/tracker.go +++ b/p2p/pkg/preconfirmation/tracker/tracker.go @@ -370,20 +370,20 @@ func (t *Tracker) handleNewL1Block( t.metrics.totalOpenedCommitments.Add(float64(settled)) t.metrics.blockCommitmentProcessDuration.Set(float64(openDuration)) - // if len(failedCommitments) > 0 { - // t.logger.Info("processing failed commitments", "count", len(failedCommitments)) - // receipts, err := t.receiptGetter.BatchReceipts(ctx, failedCommitments) - // if err != nil { - // t.logger.Warn("failed to get receipts for failed commitments", "error", err) - // return nil - // } - // for i, receipt := range receipts { - // t.logger.Debug("receipt for failed commitment", - // "txHash", failedCommitments[i], - // "error", receipt.Err, - // ) - // } - // } + if len(failedCommitments) > 0 { + t.logger.Info("processing failed commitments", "count", len(failedCommitments)) + receipts, err := t.receiptGetter.BatchReceipts(ctx, failedCommitments) + if err != nil { + t.logger.Warn("failed to get receipts for failed commitments", "error", err) + return nil + } + for i, receipt := range receipts { + t.logger.Debug("receipt for failed commitment", + "txHash", failedCommitments[i], + "error", receipt.Err, + ) + } + } return nil }