mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
lndclient: increase lightning gRPC block size to 50MB
This commit is contained in:
parent
7fd2f1176e
commit
ee5f1852d6
2 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue