Skip to content

Commit

Permalink
Increase grpc max receiving message size
Browse files Browse the repository at this point in the history
  • Loading branch information
cavanmflynn committed Apr 17, 2019
1 parent e327960 commit 333e30d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/lightning.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ module.exports = function createLightningProxy(
let lightning;

try {
lightning = new lnrpcDescriptor.lnrpc.Lightning(server, credentials);
lightning = new lnrpcDescriptor.lnrpc.Lightning(server, credentials, {
// Increase max receive message size for describegraph
'grpc.max_receive_message_length': 50 * 1024 * 1024,
});
} catch (e) {
if (!e.code) e.code = 'GRPC_LIGHTNING_SERVICE_ERR';
throw e;
Expand Down

0 comments on commit 333e30d

Please sign in to comment.