mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-31 08:02:25 +02:00
lnd: update invoiceRegistry to match new switch requirements
This commit is contained in:
@@ -73,7 +73,7 @@ func (p *preimageBeacon) LookupPreimage(payHash []byte) ([]byte, bool) {
|
||||
// the preimage as it's on that we created ourselves.
|
||||
var invoiceKey chainhash.Hash
|
||||
copy(invoiceKey[:], payHash)
|
||||
invoice, err := p.invoices.LookupInvoice(invoiceKey)
|
||||
invoice, _, err := p.invoices.LookupInvoice(invoiceKey)
|
||||
switch {
|
||||
case err == channeldb.ErrInvoiceNotFound:
|
||||
// If we get this error, then it simply means that this invoice
|
||||
|
Reference in New Issue
Block a user