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

listen to hold invoice from subscribeToInvoices #6338

Closed
nicolasburtey opened this issue Mar 15, 2022 · 3 comments
Closed

listen to hold invoice from subscribeToInvoices #6338

nicolasburtey opened this issue Mar 15, 2022 · 3 comments

Comments

@nicolasburtey
Copy link

Background

We want to listen to invoices that are been held from a single listener.

Your environment

  • version of lnd: 0.14.2

Steps to reproduce

using the lightning library, we are looking to listen to all the invoices that are been updated, and held, whenever a payment arrives.

Currently the only way to do it is to run SubscribeToInvoice on each individual invoice. but this introduce a state where we need in our backend to know precisely which invoice we are listening to, which is hard to do because we run our instance in a kubernetes environment and we're assuming the pod to be stateless/could restart any time without notice.

The right alternative would be to use SubscribeToInvoices (with a s), so that we don't have to listen to each invoice individually.

Unfortunately, SubscribeToInvoices doesn't provide events for held invoices.

@alexbosworth
Copy link
Contributor

Related #3120 ?

@Roasbeef
Copy link
Member

Yep duplicate of #3120

@nicolasburtey
Copy link
Author

thanks. couldn't find the related ticket.

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

No branches or pull requests

3 participants