-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rpc: add asset hodl invoice support #1184
Conversation
Pull Request Test Coverage Report for Build 11789368763Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linter isn't happy about line length and one question about a flag, otherwise LGTM 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
In this commit, we add hodl invoice support when creating invoice for TAP channels. The invoice creation proceeds as normal, but a special HodlInvoice field is set which contains a payment hash which must be set. When invoices are created using this endpoint. They MUST be settled using the SettleInvoice RPC on the invoicesrpc server in lnd.
5e74b6a
to
887f0e2
Compare
why call it hodl invoice whereas everywhere in LND documentation hold invoice is used? |
Why do you have a separate Also, |
Also, at https://lightning.engineering/api-docs/api/taproot-assets/taproot-asset-channels/add-invoice/index.html#tapchannelrpcaddinvoicerequest it says to use an |
In this commit, we add hodl invoice support when creating invoice for TAP channels. The invoice creation proceeds as normal, but a special HodlInvoice field is set which contains a payment hash which must be set.
When invoices are created using this endpoint. They MUST be settled using the SettleInvoice RPC on the invoicesrpc server in lnd.