alexbosworth / ln-service

Node.js interface to LND
MIT License
318 stars 61 forks source link

Subscribing to invoices - event does not trigger for hodl invoices #146

Closed danarchos closed 3 years ago

danarchos commented 3 years ago

I am subscribing to all invoices with subscribeToInvoices, the event for invoice_updated triggers when a hodl invoice is created and settled, but not for the initial payment or cancellation.

I was exepecting an update event when the invoice updates the is_heldproperty from undefined to true, and/or when is_cancelled is updated from undefined to true

alexbosworth commented 3 years ago

lnd doesn't return those events on this subscription, so you'd have to create an issue on the lnd side for that

you can get this type of event only on individual invoices, with subscribeToInvoice

danarchos commented 3 years ago

Got it, thanks.