mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-19 05:45:21 +01:00
invoices: do not log when invoice is already deleted
This commit is contained in:
parent
217019aa8a
commit
76065e84d3
@ -584,6 +584,9 @@ messages directly. There is no routing/path finding involved.
|
|||||||
re-notified](https://github.com/lightningnetwork/lnd/pull/5901), which could
|
re-notified](https://github.com/lightningnetwork/lnd/pull/5901), which could
|
||||||
lead to higher-level HTLC mismanagement issues.
|
lead to higher-level HTLC mismanagement issues.
|
||||||
|
|
||||||
|
* [Do not error log when an invoice that has been canceled and GC'd is expired](
|
||||||
|
https://github.com/lightningnetwork/lnd/pull/5913)
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
The [code contribution guidelines have been updated to mention the new
|
The [code contribution guidelines have been updated to mention the new
|
||||||
|
@ -353,6 +353,11 @@ func (ew *InvoiceExpiryWatcher) expireInvoice(hash lntypes.Hash, force bool) {
|
|||||||
|
|
||||||
case channeldb.ErrInvoiceAlreadySettled:
|
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:
|
default:
|
||||||
log.Errorf("Unable to cancel invoice: %v: %v", hash, err)
|
log.Errorf("Unable to cancel invoice: %v: %v", hash, err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user