Skip to content

Commit

Permalink
fix: uncommented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikelle committed Jul 10, 2024
1 parent 5faa6ba commit a96dd36
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions p2p/pkg/preconfirmation/tracker/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a96dd36

Please sign in to comment.