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

feat(lnd): SendPaymentV2 #1971

Merged
merged 1 commit into from
Nov 10, 2020
Merged

feat(lnd): SendPaymentV2 #1971

merged 1 commit into from
Nov 10, 2020

Conversation

sangaman
Copy link
Collaborator

This migrates the call we use to send payments with lnd from the deprecated SendPaymentSync to SendPaymentV2 which allows for multi path payments, among other improvements. As part of this change, the lnd proto files have been updated to their v0.11.x versions and the version of lnd used in simulation tests has been updated to v0.11.1 as well.

Closes #1590.

I'll open a related PR to our lnd config in xud-docker to enable MPP.

Simulation tests aren't running on my machine with these changes, so I'm opening this as a draft to see if there's any difference running them on GitHub Actions. I'll mark it as ready once I get simulation tests pasing.

@sangaman sangaman added the lightning Lightning network & lnd integration label Oct 30, 2020
@sangaman sangaman requested review from a user, kilrau and raladev October 30, 2020 11:57
@sangaman sangaman self-assigned this Oct 30, 2020
@sangaman sangaman force-pushed the lnd/sendpaymentv2 branch 4 times, most recently from 3ecffe0 to 2926b63 Compare November 1, 2020 17:36
@sangaman sangaman marked this pull request as ready for review November 1, 2020 19:12
@sangaman
Copy link
Collaborator Author

sangaman commented Nov 1, 2020

Simulation tests are passing now so this is ready for review/further testing. I'm working on a simulation test case for a multi path payments but unless I get it working soon it'd make sense to leave for a future PR.

@kilrau kilrau mentioned this pull request Nov 2, 2020
raladev
raladev previously approved these changes Nov 4, 2020
Copy link
Contributor

@raladev raladev left a comment

Choose a reason for hiding this comment

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

  • old logic works fine
  • we still need the solution for route finding when user has multi path

@kilrau kilrau added this to the 1.3.0 milestone Nov 5, 2020
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Looks good, but needs a rebase.

@sangaman
Copy link
Collaborator Author

sangaman commented Nov 9, 2020

I'll fix the conflict and merge, it'll need another quick approval afterwards.

This migrates the call we use to send payments with lnd from the
deprecated `SendPaymentSync` to `SendPaymentV2` which allows for multi
path payments, among other improvements. As part of this change, the
lnd proto files have been updated to their v0.11.x versions and the
version of lnd used in simulation tests has been updated to v0.11.1 as
well.

Closes #1590.
@sangaman
Copy link
Collaborator Author

Rebased to fix the conflict. Just needs an approval then we can merge this.

@sangaman sangaman merged commit 0218553 into master Nov 10, 2020
@sangaman sangaman deleted the lnd/sendpaymentv2 branch November 10, 2020 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lightning Lightning network & lnd integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LND: switch to https://api.lightning.community/#sendpaymentv2
3 participants