Closed fawkesley closed 5 years ago
hi @paulfurley, I have had this working but will try repro to see if something has changed.
Can you describe the setup you have that isn't working so I can try rerpo on my side.
Thanks for bug report 👍
@adrienemery Could you reproduce?
@ysangkok no - I just ran this locally with latest lnd (Version: 0.5.0-beta commit=v0.5-beta-103-gb00e43eec1f19e55f910f7eb527bf7437b4069b4-dirty
)
from lndgrpc import LNDClient
lnd = LNDClient("127.0.0.1:10009")
print('Listening for invoices...')
for invoice in lnd.subscribe_invoices():
print(invoice)
When I generate invoices with lncli
they get printed by the above code.
If there is a configuration that doesn't work please let me know and I can investigate. But for now I will close this since can't repro.
Running a node on Polar/testnet, Python 3.8.1.
I get no response from
for invoice in lnd.subscribe_invoices():
print(invoice)
@citizenanalog Just to rule out anything weird, are you able to connect to your LND node using other methods provided by the library?
Other methods (get_info, wallet_balance, list_invoices) working as expected.
Hi, cool library, thanks!
I've been successfully using it for creating invoices, but when I iterate on
client.subscribe_invoices()
I don't get anything yielded at all when I create new invoices.Have you had this working? Thanks!