mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 01:36:24 +01:00
docs: fix python example code issues
This commit is contained in:
parent
12677f08b2
commit
976655d172
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue