mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-20 12:57:23 +02:00
parent
bcd1e782c3
commit
b3262c5a38
2 changed files with 9 additions and 2 deletions
|
|
@ -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 ...")
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue