Skip to content

Commit

Permalink
Merge pull request #72 from bitromortac/rpc-v0.10
Browse files Browse the repository at this point in the history
rpc: support lnd v0.10-beta
  • Loading branch information
bitromortac authored May 4, 2020
2 parents 970dc0d + 6aadb70 commit f9082b3
Show file tree
Hide file tree
Showing 9 changed files with 4,286 additions and 2,110 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ test/test_data/*
build/*
dist/*
lndmanage.egg-info/*
googleapis/*
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ lndmanage will be developed in lockstep with lnd and tagged accordingly.
If you are running an older version of lnd checkout the according
[tag](https://github.com/bitromortac/lndmanage/releases).

**Requirements:** python3.6, lnd v0.9.0-beta
**Requirements:** python3.6, lnd v0.10.0-beta

Some commands will only work correctly if lnd is built with the `routerrpc`.
This can be done when compiling with `make install tags="routerrpc"`. If you
Expand Down Expand Up @@ -444,9 +444,16 @@ and follow the [`README`](docker/README.md) there.

## Compiling grpc in python [development]
```
$ cd grpc_compiled
$ cd lndmanage/grpc_compiled
$ pip install grpcio grpcio-tools googleapis-common-protos
$ git clone https://github.com/googleapis/googleapis.git
$ curl -o rpc.proto -s https://raw.githubusercontent.com/lightningnetwork/lnd/master/lnrpc/rpc.proto
$ curl -o router.proto -s https://raw.githubusercontent.com/lightningnetwork/lnd/master/lnrpc/routerrpc/router.proto
$ python -m grpc_tools.protoc --proto_path=googleapis:. --python_out=. --grpc_python_out=. rpc.proto
$ python -m grpc_tools.protoc --proto_path=googleapis:. --python_out=. --grpc_python_out=. routerrpc.proto
```
Then correct to absolute import paths, for instance change `import rpc_pb2 as rpc__pb2`
to `from lndmanage.grpc_compiled import rpc_pb2 as rpc__pb2`.
2 changes: 1 addition & 1 deletion lndmanage/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.9.0'
__version__ = '0.10.0'
Loading

0 comments on commit f9082b3

Please sign in to comment.