From 6037d0105fb801439e5e3a52ab957dbee690ff3c Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 17 Apr 2019 15:49:23 -0700 Subject: [PATCH] cmd/loopd: rename MacaroonPath to MacaroonDir --- cmd/loopd/config.go | 6 +++--- cmd/loopd/utils.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/loopd/config.go b/cmd/loopd/config.go index cc9ba91..2d8855b 100644 --- a/cmd/loopd/config.go +++ b/cmd/loopd/config.go @@ -1,9 +1,9 @@ package main type lndConfig struct { - Host string `long:"host" description:"lnd instance rpc address"` - MacaroonPath string `long:"macaroonpath" description:"Path to lnd macaroon"` - TLSPath string `long:"tlspath" description:"Path to lnd tls certificate"` + Host string `long:"host" description:"lnd instance rpc address"` + MacaroonDir string `long:"macaroondir" description:"Path to the directory containing all the required lnd macaroons"` + TLSPath string `long:"tlspath" description:"Path to lnd tls certificate"` } type viewParameters struct{} diff --git a/cmd/loopd/utils.go b/cmd/loopd/utils.go index 787cf23..0e10b44 100644 --- a/cmd/loopd/utils.go +++ b/cmd/loopd/utils.go @@ -11,7 +11,7 @@ import ( // getLnd returns an instance of the lnd services proxy. func getLnd(network string, cfg *lndConfig) (*lndclient.GrpcLndServices, error) { return lndclient.NewLndServices( - cfg.Host, "client", network, cfg.MacaroonPath, cfg.TLSPath, + cfg.Host, "client", network, cfg.MacaroonDir, cfg.TLSPath, ) }