Skip to content
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

lnd: paying to the payment request #281

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

YusukeShimizu
Copy link
Contributor

@YusukeShimizu YusukeShimizu commented Feb 8, 2024

What

Use the SendPaymentV2 RPC and set payment_request in the request.
This will ensure that the payments are linked to the peerswap invoices that were paid.
And check that the remote pubkey of the channel and the destination of the invoice match to ensure direct payment.

Also added a test case to ensure that payreq is included in the payment.
Both cln and lnd confirmed to include payreq in payment.

Why

To respond to the request for the lightning payment portion of #254.

Use the SendPaymentV2 RPC and set payment_request in the request.
This will ensure that the payments are
linked to the peerswap invoices that were paid.
I check that the remote pubkey of the channel
and the destination of the invoice match.

Also added a test case to ensure that payreq is included in the payment.
@YusukeShimizu YusukeShimizu marked this pull request as ready for review February 8, 2024 05:30
@YusukeShimizu YusukeShimizu changed the title lnd: use the SendPaymentV2 RPC and set payment_request lnd: paying to the payment request Feb 8, 2024
Copy link

@mrfelton mrfelton left a comment

Choose a reason for hiding this comment

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

Tested with lnd and works as expected. LGTM

Copy link
Contributor

@nepet nepet left a comment

Choose a reason for hiding this comment

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

ACK 8079ab1

@nepet nepet merged commit f858dae into ElementsProject:master Feb 19, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants