lnd.xprv/invoices
carla d2e395d5f2
multi: replace errInvoiceNotFound with resolution result
This commit moves handling of invoice not found
errors into NotifyExitHopHtlc and exposes a
resolution result to the calling functions. The
intention of this change is to make calling
functions as naive of the invoice registry's
mechanics as possible.

When NotifyExitHopHtlc is called and an invoice
is not found, calling functions can take action
based on the HtlcResolution's InvoiceNotFound
outcome rather than having to add a special error
check on every call to handle the error.
2019-12-20 13:01:15 +02:00
..
interface.go record: move CustomRecordSet 2019-12-12 00:12:19 +01:00
invoice_expiry_watcher_test.go invoices: adding InvoiceExpryWatcher to cancel expired invoices 2019-12-13 17:03:08 +01:00
invoice_expiry_watcher.go invoices: adding InvoiceExpryWatcher to cancel expired invoices 2019-12-13 17:03:08 +01:00
invoiceregistry_test.go multi: replace errInvoiceNotFound with resolution result 2019-12-20 13:01:15 +02:00
invoiceregistry.go multi: replace errInvoiceNotFound with resolution result 2019-12-20 13:01:15 +02:00
log.go invoices: create package 2019-01-07 23:04:05 +01:00
test_utils_test.go invoices: adding InvoiceExpryWatcher to cancel expired invoices 2019-12-13 17:03:08 +01:00
update.go multi: replace errInvoiceNotFound with resolution result 2019-12-20 13:01:15 +02:00