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

fix: checking for invoice support on lnd clients while verifying connection #1914

Merged
2 commits merged into from
Sep 30, 2020

Conversation

rsercano
Copy link
Collaborator

@rsercano rsercano commented Sep 23, 2020

Attempts to resolve #1875

A result of getinfo where I simulated no invoice support by sending wrong rHash: @kilrau

image

@rsercano rsercano self-assigned this Sep 23, 2020
Copy link
Contributor

@michael1011 michael1011 left a comment

Choose a reason for hiding this comment

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

Thanks for working on my obscure issue 😊

I left some comments. And one more thing I noticed is that you call it invoice support which is technically not true and might be confusing for end users. I would very much prefer calling it hold invoice support because normal invoices are always supported by LND and hold invoice support is optional and has to be enabled via a flag when building LND.

Edit: writing integration tests for this would probably be really hard but I would very much appreciate some unit tests for the added logic.

lib/lndclient/LndClient.ts Outdated Show resolved Hide resolved
lib/swaps/SwapClient.ts Outdated Show resolved Hide resolved
@rsercano rsercano force-pushed the fix/checking-invoices-support-lnd branch from 2a8d9f6 to 4c26aff Compare September 24, 2020 08:06
@rsercano
Copy link
Collaborator Author

rsercano commented Sep 24, 2020

My pleasure :) I fixed the review points @michael1011, will take a look at tests.

raladev
raladev previously approved these changes Sep 24, 2020
@sangaman sangaman added the lightning Lightning network & lnd integration label Sep 24, 2020
lib/lndclient/errors.ts Outdated Show resolved Hide resolved
lib/lndclient/errors.ts Outdated Show resolved Hide resolved
@ghost ghost self-requested a review September 26, 2020 07:42
@raladev raladev self-requested a review September 28, 2020 12:42
raladev
raladev previously approved these changes Sep 28, 2020
ghost
ghost previously approved these changes Sep 29, 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.

Good job!

@ghost ghost requested a review from michael1011 September 29, 2020 12:45
@ghost
Copy link

ghost commented Sep 29, 2020

@michael1011 good to merge from your side?

Copy link
Contributor

@michael1011 michael1011 left a comment

Choose a reason for hiding this comment

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

One minor nit but the rest looks awesome!

lib/lndclient/LndClient.ts Outdated Show resolved Hide resolved
@rsercano rsercano dismissed stale reviews from ghost and raladev via 532a332 September 29, 2020 15:59
@rsercano rsercano force-pushed the fix/checking-invoices-support-lnd branch from da64aab to 532a332 Compare September 29, 2020 15:59
@rsercano
Copy link
Collaborator Author

Fixed @michael1011 thanks for checking!

@rsercano rsercano requested review from michael1011, a user and raladev September 29, 2020 16:00
@ghost ghost merged commit c4c411c into master Sep 30, 2020
@ghost ghost deleted the fix/checking-invoices-support-lnd branch September 30, 2020 09:31
This pull request was closed.
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.

Handling LND without support for hold invoices
4 participants