mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
Merge pull request #3379 from Roasbeef/rest-describe-graph
REST: increase max msg size for REST proxy
This commit is contained in:
commit
3e1b2c5256
1 changed files with 9 additions and 1 deletions
10
lnd.go
10
lnd.go
|
@ -197,7 +197,15 @@ func Main() error {
|
|||
serverCreds := credentials.NewTLS(tlsCfg)
|
||||
serverOpts := []grpc.ServerOption{grpc.Creds(serverCreds)}
|
||||
|
||||
restDialOpts := []grpc.DialOption{grpc.WithTransportCredentials(*restCreds)}
|
||||
// For our REST dial options, we'll still use TLS, but also increase
|
||||
// the max message size that we'll decode to allow clients to hit
|
||||
// endpoints which return more data such as the DescribeGraph call.
|
||||
restDialOpts := []grpc.DialOption{
|
||||
grpc.WithTransportCredentials(*restCreds),
|
||||
grpc.WithDefaultCallOptions(
|
||||
grpc.MaxCallRecvMsgSize(1 * 1024 * 1024 * 50),
|
||||
),
|
||||
}
|
||||
|
||||
// Before starting the wallet, we'll create and start our Neutrino
|
||||
// light client instance, if enabled, in order to allow it to sync
|
||||
|
|
Loading…
Add table
Reference in a new issue