mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-18 06:34:27 +01:00
docs: fix python example code issues
This commit is contained in:
committed by
Johan T. Halseth
parent
12677f08b2
commit
976655d172
@@ -51,6 +51,7 @@ and set up a channel and stub to your connect to your `lnd` node:
|
||||
import rpc_pb2 as ln
|
||||
import rpc_pb2_grpc as lnrpc
|
||||
import grpc
|
||||
import os
|
||||
|
||||
# Lnd cert is at ~/.lnd/tls.cert on Linux and
|
||||
# ~/Library/Application Support/Lnd/tls.cert on Mac
|
||||
@@ -78,7 +79,7 @@ print response.total_balance
|
||||
|
||||
```python
|
||||
request = ln.InvoiceSubscription()
|
||||
for invoice in stub.SubscribeInvoices(request);
|
||||
for invoice in stub.SubscribeInvoices(request):
|
||||
print invoice
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user