cmd/loopd: rename MacaroonPath to MacaroonDir

pull/45/head
Olaoluwa Osuntokun 5 years ago
parent 74d381fa63
commit 6037d0105f
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

@ -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{}

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

Loading…
Cancel
Save