-
Notifications
You must be signed in to change notification settings - Fork 63
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
subscribeToInvoice method not working #149
Comments
what doesn't work exactly about |
After subscribing to the method We previously had ver 13.2 working normally , the issue appeared after updating the lnd server to 0.13.3-beta.rc2. Thanks again. |
Can you share some code? I can't reproduce a problem with |
|
maybe it is an ordering issue, does it work if you put the subscription before the create invoice request? |
I need the invoice.id for the subcription. If I put the subscription before the create invoice I will not have that parameter available. |
ok yeah that makes sense it should show updates after the creation though, maybe nothing is retaining the subscription? I don't know why it would be related to the lnd version |
For me the same issue using lightning
.subscribeToInvoice({ lnd, id })
.on("invoice_updated", (invoice: lightning.SubscribeToInvoiceInvoiceUpdatedEvent) => {
logger.debug(JSON.stringify(invoice))
if (invoice.is_confirmed) {
onConfirmed(invoice)
}
}) This works on LND v0.16.2-beta in SIMNET using polarlightning, but after deploying the same code to an environment with LND v0.17.3-beta in TESTNET, it is not triggering |
Update: After realizing I built LND from source using |
I Just notice that in the supported versions, Ver LND 0.13.3-beta.rc2 is not yet supported. So this is just a heads up that the subscribeToInvoice method is not working on the RC2 version , we had to use subscribeToInvoices instead. ( with an s at the end )
Also in this RC2 version the subscribeToInvoices is not reporting invoice cancellations.
Thank for such a great work.
The text was updated successfully, but these errors were encountered: