Skip to content

lnrpc: expose features on rpc invoices#3824

Merged
cfromknecht merged 2 commits into
lightningnetwork:masterfrom
cfromknecht:invoice-features-rpc
Dec 12, 2019
Merged

lnrpc: expose features on rpc invoices#3824
cfromknecht merged 2 commits into
lightningnetwork:masterfrom
cfromknecht:invoice-features-rpc

Conversation

@cfromknecht
Copy link
Copy Markdown
Contributor

In #3802 we exposed the features on a payreq decoded using the decodepayreq rpc. In this PR, we take this one step further by displaying it on all lnrpc.Invoice objects. This allows the invoice generator to see what features are being advertised on their invoices.

@cfromknecht cfromknecht added this to the 0.9.0 milestone Dec 12, 2019
@cfromknecht cfromknecht added payments Related to invoices/payments rpc Related to the RPC interface v0.9.0 labels Dec 12, 2019
Comment thread lnrpc/invoicesrpc/utils.go Outdated
Copy link
Copy Markdown
Collaborator

@carlaKC carlaKC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for an IsKnown function on features but LGTM otherwise 🌮

In the process, we also move the feature serialization into the
invoicesrpc package, so that it can be shared between the invoicesrpc
and main rpcserver.
Copy link
Copy Markdown
Contributor

@joostjager joostjager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did a quick listinvoices test. It works.

@cfromknecht cfromknecht merged commit cc18d0a into lightningnetwork:master Dec 12, 2019
@cfromknecht cfromknecht deleted the invoice-features-rpc branch December 12, 2019 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

amp payments Related to invoices/payments rpc Related to the RPC interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants