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, ) }