Merge pull request #6149 from bhandras/graph_import_rpc

lnd: add `devrpc` sub server and `devrpc.ImportGraph` to import graph dumps
This commit is contained in:
Oliver Gugger authored and GitHub committed 2022-01-28 10:24:59 +01:00
commit b77c1fb200
28 files changed
+1403 -70

No files matched your search

+4 -1
View File
@@ -268,6 +268,9 @@ func Main(cfg *Config, lisCfg ListenerCfg, implCfg *ImplementationCfg,
rpcServerOpts := interceptorChain.CreateServerOpts()
serverOpts = append(serverOpts, rpcServerOpts...)
serverOpts = append(
serverOpts, grpc.MaxRecvMsgSize(lnrpc.MaxGrpcMsgSize),
)
grpcServer := grpc.NewServer(serverOpts...)
defer grpcServer.Stop()
@@ -771,7 +774,7 @@ func getTLSConfig(cfg *Config) ([]grpc.ServerOption, []grpc.DialOption,
restDialOpts := []grpc.DialOption{
grpc.WithTransportCredentials(restCreds),
grpc.WithDefaultCallOptions(
grpc.MaxCallRecvMsgSize(1 * 1024 * 1024 * 200),
grpc.MaxCallRecvMsgSize(lnrpc.MaxGrpcMsgSize),
),
}