You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To make the macaroon handling a bit more intuitive and the code easier
to understand we now remove the deprecated macaroondir config option in
favor of the more explicit macaroonpath one.
Copy file name to clipboardExpand all lines: config.go
+16-44Lines changed: 16 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,6 @@ const (
59
59
defaultRemoteLndRpcServer="localhost:10009"
60
60
defaultLndChainSubDir="chain"
61
61
defaultLndChain="bitcoin"
62
-
defaultLndMacaroon="admin.macaroon"
63
62
)
64
63
65
64
var (
@@ -99,13 +98,6 @@ var (
99
98
defaultLetsEncryptDir=filepath.Join(
100
99
defaultLitDir, defaultLetsEncryptSubDir,
101
100
)
102
-
103
-
// defaultRemoteLndMacDir is the default directory we assume for a local
104
-
// lnd node to store all its macaroon files.
105
-
defaultRemoteLndMacDir=filepath.Join(
106
-
lndDefaultConfig.DataDir, defaultLndChainSubDir,
107
-
defaultLndChain, defaultNetwork,
108
-
)
109
101
)
110
102
111
103
// Config is the main configuration struct of lightning-terminal. It contains
@@ -170,16 +162,12 @@ type RemoteDaemonConfig struct {
170
162
// listening on.
171
163
RPCServerstring`long:"rpcserver" description:"The host:port that the remote daemon is listening for RPC connections on."`
172
164
173
-
// MacaroonDir is the directory that contains all the macaroon files
174
-
// required for the remote connection.
175
-
MacaroonDirstring`long:"macaroondir" description:"DEPRECATED: Use macaroonpath. The directory containing all lnd macaroons to use for the remote connection."`
176
-
177
165
// MacaroonPath is the path to the single macaroon that should be used
178
166
// instead of needing to specify the macaroon directory that contains
179
-
// all of lnd's macaroons. The specified macaroon MUST have all
167
+
// all of the daemon's macaroons. The specified macaroon MUST have all
180
168
// permissions that all the subservers use, otherwise permission errors
181
169
// will occur.
182
-
MacaroonPathstring`long:"macaroonpath" description:"The full path to the single macaroon to use, either the admin.macaroon or a custom baked one. Cannot be specified at the same time as macaroondir. A custom macaroon must contain ALL permissions required for all subservers to work, otherwise permission errors will occur."`
170
+
MacaroonPathstring`long:"macaroonpath" description:"The full path to the single macaroon to use, either the main (admin.macaroon in lnd's case) or a custom baked one. A custom macaroon must contain ALL permissions required for all subservers to work, otherwise permission errors will occur."`
183
171
184
172
// TLSCertPath is the path to the tls cert of the remote daemon that
185
173
// should be used to verify the TLS identity of the remote RPC server.
0 commit comments