lnd/lnrpc/invoicesrpc
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
..
addinvoice.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
addinvoice_test.go lnrpc: provide hop hints when adding an invoice with no amount 2022-11-12 05:01:10 -05:00
config_active.go rpcserver+invoicesrpc: alias-aware AddInvoice,AddHoldInvoice rpc 2022-07-07 17:10:29 -04:00
config_default.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
driver.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
invoices.pb.go lnrpc: update invoice request expiry comment 2023-01-12 09:17:34 +09:00
invoices.pb.gw.go lnrpc/invoicesrpc: add new invoice ref LookupInvoiceV2 method 2021-10-28 15:49:25 -07:00
invoices.pb.json.go lnrpc/gen_protos.sh: remove js build tag 2022-09-07 18:32:05 -04:00
invoices.proto lnrpc: update invoice request expiry comment 2023-01-12 09:17:34 +09:00
invoices.swagger.json lnrpc: update invoice request expiry comment 2023-01-12 09:17:34 +09:00
invoices.yaml lnrpc/invoicesrpc: add new invoice ref LookupInvoiceV2 method 2021-10-28 15:49:25 -07:00
invoices_grpc.pb.go lnrpc: re-compile protos w/ Go 1.19 2022-08-24 11:43:00 -05:00
invoices_server.go multi: break invoice depenency on channeldb 2023-01-16 07:31:09 -08:00
log.go lnrpc: fix log.go files 2022-04-01 18:12:59 -07:00
utils.go channeldb/invoices: add IsAMP and IsKeysend helpers 2023-01-20 03:43:39 -08:00