invoices: do not log when invoice is already deleted

This commit is contained in:
Andras Banki-Horvath committed 2021-11-01 16:10:45 +01:00
1 parent 217019aa8a
commit 76065e84d3
2 files changed
+8

No files matched your search

+5
View File
@@ -353,6 +353,11 @@ func (ew *InvoiceExpiryWatcher) expireInvoice(hash lntypes.Hash, force bool) {
case channeldb.ErrInvoiceAlreadySettled:
case channeldb.ErrInvoiceNotFound:
// It's possible that the user has manually canceled the invoice
// which will then be deleted by the garbage collector resulting
// in an ErrInvoiceNotFound error.
default:
log.Errorf("Unable to cancel invoice: %v: %v", hash, err)
}