lndclient: increase lightning gRPC block size to 50MB

pull/56/head
Valentine Wallace 5 years ago
parent 7fd2f1176e
commit ee5f1852d6
No known key found for this signature in database
GPG Key ID: B0E55E8D1776A58D

@ -55,6 +55,7 @@ func NewBasicClient(lndHost, tlsPath, macDir, network string) (lnrpc.LightningCl
// Now we append the macaroon credentials to the dial options.
cred := macaroons.NewMacaroonCredential(mac)
opts = append(opts, grpc.WithPerRPCCredentials(cred))
opts = append(opts, grpc.WithDefaultCallOptions(maxMsgRecvSize))
}
// We need to use a custom dialer so we can also connect to unix sockets

@ -179,6 +179,10 @@ var (
defaultChainMacaroonFilename = "chainnotifier.macaroon"
defaultWalletKitMacaroonFilename = "walletkit.macaroon"
defaultSignerFilename = "signer.macaroon"
// maxMsgRecvSize is the largest gRPC message our client will receive.
// We set this to ~50Mb.
maxMsgRecvSize = grpc.MaxCallRecvMsgSize(1 * 1024 * 1024 * 50)
)
func getClientConn(address string, network string, tlsPath string) (

Loading…
Cancel
Save