forked from fusion44/blitz_api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Latest gRPC library version introduced breaking changes
- Loading branch information
Showing
8 changed files
with
1,399 additions
and
30,654 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# clone lnd repo | ||
# cd into lnd/lnrpc | ||
# git clone https://github.com/googleapis/googleapis.git | ||
|
||
set -e | ||
|
||
# path to LND lnrpc directory | ||
LND_RPC_DIR="." | ||
|
||
function generate() { | ||
echo "Generating root gRPC protos" | ||
|
||
PROTOS=$(find ${LND_RPC_DIR} -not -path '*googleapis*' -name "*.proto") | ||
|
||
for file in $PROTOS; do | ||
DIRECTORY=$(dirname "${file}") | ||
|
||
echo "Generating protos from ${file}, into ${DIRECTORY}" | ||
|
||
# Generate the protos. | ||
python -m grpc_tools.protoc --proto_path=googleapis:. --python_out=. --grpc_python_out=. "${file}" | ||
done | ||
} | ||
|
||
# Compile the lnrpc package. | ||
generate |
25,004 changes: 636 additions & 24,368 deletions
25,004
app/lightning/impl/protos/lnd/lightning_pb2.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.