docs: fix python example code issues
This commit is contained in:
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
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user