Skip to content

Commit

Permalink
increase client side message size limit to 50 MB
Browse files Browse the repository at this point in the history
fixes C-Otto#11
  • Loading branch information
C-Otto committed Dec 27, 2018
1 parent 532800b commit ec65264
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lnd/lnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ class Lnd:
def __init__(self):
os.environ['GRPC_SSL_CIPHER_SUITES'] = 'HIGH+ECDSA'
combined_credentials = self.get_credentials(Lnd.LND_DIR)
grpc_channel = grpc.secure_channel(Lnd.SERVER, combined_credentials)
channel_options = [
('grpc.max_message_length', 50 * 1024 * 1024),
('grpc.max_receive_message_length', 50 * 1024 * 1024)
]
grpc_channel = grpc.secure_channel(Lnd.SERVER, combined_credentials, channel_options)
self.stub = lnrpc.LightningStub(grpc_channel)
self.graph = None

Expand Down

0 comments on commit ec65264

Please sign in to comment.