diff --git a/install-rpc.sh b/install-rpc.sh index 7be07721..c53bb6b2 100755 --- a/install-rpc.sh +++ b/install-rpc.sh @@ -9,12 +9,12 @@ if [ ! -f "rpc.proto" ]; then fi # Move this to squeaknode/common/lnd/rpc.proto instead. -cp rpc.proto squeaknode/common/lnd.proto +cp rpc.proto squeaknode/common/rpc/lnd.proto # cp rpc.proto lnd.proto echo "Installing RPC protocol files" # install lnd protocol -python3 -m grpc_tools.protoc --proto_path=googleapis:. --python_out=. --grpc_python_out=. squeaknode/common/lnd.proto +python3 -m grpc_tools.protoc --proto_path=googleapis:. --python_out=. --grpc_python_out=. squeaknode/common/rpc/lnd.proto # install lnd protocol at the top level # python3 -m grpc_tools.protoc --proto_path=googleapis:. --python_out=. --grpc_python_out=. lnd.proto diff --git a/squeaknode/server/main.py b/squeaknode/server/main.py index 86533d6c..6f5d8916 100644 --- a/squeaknode/server/main.py +++ b/squeaknode/server/main.py @@ -10,8 +10,8 @@ from configparser import ConfigParser from squeak.params import SelectParams from squeak.core.signing import CSigningKey -import squeaknode.common.lnd_pb2 as ln -import squeaknode.common.lnd_pb2_grpc as lnrpc +import squeaknode.common.rpc.lnd_pb2 as ln +import squeaknode.common.rpc.lnd_pb2_grpc as lnrpc from squeaknode.common.lnd_lightning_client import LNDLightningClient from squeaknode.server.squeak_server_servicer import SqueakServerServicer