fix: increase gRPC max receive message size

refs #125
This commit is contained in:
fusion44 2023-04-03 18:49:48 +02:00
parent bcd1e782c3
commit b3262c5a38
No known key found for this signature in database
2 changed files with 9 additions and 2 deletions

View file

@ -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 ...")

View file

@ -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)