adrienemery / lnd-grpc-client

A python grpc client/async client for LND ⚡⚡⚡
MIT License
34 stars 20 forks source link

Does `client.subscribe_invoices()` work? #8

Closed fawkesley closed 5 years ago

fawkesley commented 6 years ago

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!

adrienemery commented 6 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 👍

ysangkok commented 5 years ago

@adrienemery Could you reproduce?

adrienemery commented 5 years ago

@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.

citizenanalog commented 3 years ago

Running a node on Polar/testnet, Python 3.8.1.

I get no response from

for invoice in lnd.subscribe_invoices():
    print(invoice)
adrienemery commented 3 years ago

@citizenanalog Just to rule out anything weird, are you able to connect to your LND node using other methods provided by the library?

citizenanalog commented 3 years ago

Other methods (get_info, wallet_balance, list_invoices) working as expected.