lnd: rename light client cmd line option to --neutrino.X=K

This commit is contained in:
Olaoluwa Osuntokun
2017-06-05 15:44:18 -07:00
parent aec8c8dc77
commit 4b29c70c45
3 changed files with 14 additions and 11 deletions

9
lnd.go
View File

@ -102,6 +102,8 @@ func lndMain() error {
return err
}
// Next, we'll initialize the funding manager itself so it can answer
// queries while the wallet+chain are still syncing.
nodeSigner := newNodeSigner(idPrivKey)
var chanIDSeed [32]byte
if _, err := rand.Read(chanIDSeed[:]); err != nil {
@ -159,16 +161,17 @@ func lndMain() error {
}
server.fundingMgr = fundingMgr
// Initialize, and register our implementation of the gRPC server.
var opts []grpc.ServerOption
// Initialize, and register our implementation of the gRPC interface
// exported by the rpcServer.
rpcServer := newRPCServer(server)
if err := rpcServer.Start(); err != nil {
return err
}
var opts []grpc.ServerOption
grpcServer := grpc.NewServer(opts...)
lnrpc.RegisterLightningServer(grpcServer, rpcServer)
// Next, Start the grpc server listening for HTTP/2 connections.
// Next, Start the gRPC server listening for HTTP/2 connections.
grpcEndpoint := fmt.Sprintf("localhost:%d", loadedConfig.RPCPort)
lis, err := net.Listen("tcp", grpcEndpoint)
if err != nil {