lnd/invoices
positiveblue 8563e1f409
channeldb/invoices: add IsAMP and IsKeysend helpers
The only way to know if an invoice is AMP, Keysend, etc is to look at
its shape/characteristics. This commit adds a couple of helper functions
to encapsulate the logic of these checks.

If all these types cannot intersect: an invoice cannot be AMP and
Keysend or Keysend and Bolt12, etc it could be useful to add an extra
field to store this information instead of relying on checking how the
invoice looks like.
2023-01-20 03:43:39 -08:00
..
errors.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
interface.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
invoice_expiry_watcher_test.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
invoice_expiry_watcher.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
invoiceregistry_test.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
invoiceregistry.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
invoices.go channeldb/invoices: add IsAMP and IsKeysend helpers 2023-01-20 03:43:39 -08:00
log.go invoices: remove dead code from logger 2020-04-24 19:15:08 +02:00
mock.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
resolution_result.go trivial typo[skip ci] 2022-07-01 11:21:46 +02:00
resolution.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
test_utils_test.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
test_utils.go multi: remove gomnd disable directives 2023-01-17 19:43:26 +01:00
update.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00