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

refactor(lnd): use SendPayment instead of SendToRoute #1121

Merged
1 commit merged into from
Aug 6, 2019

Conversation

ghost
Copy link

@ghost ghost commented Jul 25, 2019

In this PR we refactor the logic of LndClient.sendPayment to use SendPayment instead of SendToRoute.

The maximum length/duration of maker's payment is enforced by specifying the cltvLimit.

@ghost ghost requested review from sangaman and offerm July 25, 2019 08:01
@kilrau kilrau assigned ghost Jul 25, 2019
@kilrau
Copy link
Contributor

kilrau commented Aug 1, 2019

needs your review @sangaman

Copy link
Collaborator

@sangaman sangaman 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, just a few comments and a question about the makerToTakerRoutes property.

lib/lndclient/LndClient.ts Outdated Show resolved Hide resolved
lib/lndclient/LndClient.ts Outdated Show resolved Hide resolved
lib/lndclient/LndClient.ts Outdated Show resolved Hide resolved
lib/lndclient/LndClient.ts Show resolved Hide resolved
@ghost ghost force-pushed the refactor/lnd-use-sendpayment branch from 356c6dd to 5ab5523 Compare August 5, 2019 08:13
@ghost ghost force-pushed the refactor/lnd-use-sendpayment branch from 5ab5523 to c2aa68c Compare August 5, 2019 08:16
@ghost
Copy link
Author

ghost commented Aug 5, 2019

@sangaman thanks for the review - feedback applied.

@ghost ghost merged commit 35e4b7c into master Aug 6, 2019
@ghost ghost deleted the refactor/lnd-use-sendpayment branch August 6, 2019 14:22
@kilrau kilrau mentioned this pull request Aug 8, 2019
2 tasks
This pull request was closed.
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.

2 participants