diff --git a/app/lightning/impl/cln_grpc.py b/app/lightning/impl/cln_grpc.py index 7102414..72dcbd0 100644 --- a/app/lightning/impl/cln_grpc.py +++ b/app/lightning/impl/cln_grpc.py @@ -128,7 +128,10 @@ class LnNodeCLNgRPC(LightningNodeBase): certificate_chain=cln_grpc_cert, ) - opts = (("grpc.ssl_target_name_override", "cln"),) + opts = ( + ("grpc.ssl_target_name_override", "cln"), + ("grpc.max_receive_message_length", 1024 * 1024 * 10), + ) while not self._initialized: logger.debug("CLN_GRPC: iterating ...") diff --git a/app/lightning/impl/lnd_grpc.py b/app/lightning/impl/lnd_grpc.py index d893f87..2b3103d 100644 --- a/app/lightning/impl/lnd_grpc.py +++ b/app/lightning/impl/lnd_grpc.py @@ -83,8 +83,12 @@ This will show more debug information. logging.warning("LND_GRPC: gRPC channel already created.") return + opts = [("grpc.max_receive_message_length", 1024 * 1024 * 10)] + self._channel = grpc.aio.secure_channel( - self._lnd_grpc_url, self._combined_creds + self._lnd_grpc_url, + self._combined_creds, + options=opts, ) self._lnd_stub = lnrpc.LightningStub(self._channel) self._router_stub = routerrpc.RouterStub(self._channel)