Merge pull request #3059 from champo/rpc_drop

lnd: close the wallet unlock grpc server
This commit is contained in:
Johan T. Halseth 2019-08-26 14:18:33 +02:00 committed by GitHub
commit d2435a4dc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
lnd.go

@ -887,6 +887,7 @@ func waitForWalletPassword(grpcEndpoints, restEndpoints []net.Addr,
// Set up a new PasswordService, which will listen for passwords
// provided over RPC.
grpcServer := grpc.NewServer(serverOpts...)
defer grpcServer.GracefulStop()
chainConfig := cfg.Bitcoin
if registeredChains.PrimaryChain() == litecoinChain {