lnd: update invoiceRegistry to match new switch requirements

This commit is contained in:
Olaoluwa Osuntokun committed 2018-06-29 16:03:51 -07:00
1 parent 2196d9375e
commit c19c872cff
3 files changed
+20 -8

No files matched your search

+1 -1
View File
@@ -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