lnd: consolidate WalletUnlocker- and AdminAuthOptions
This commit is contained in:
2 files changed
+7
-23
No files matched your search
+2
-2
@@ -105,7 +105,7 @@ func Start(extraArgs string, unlockerReady, rpcReady Callback) {
|
||||
|
||||
// We must set the TLS certificates in order to properly
|
||||
// authenticate with the wallet unlocker service.
|
||||
auth, err := lnd.WalletUnlockerAuthOptions(loadedConfig)
|
||||
auth, err := lnd.AdminAuthOptions(loadedConfig, true)
|
||||
if err != nil {
|
||||
unlockerReady.OnError(err)
|
||||
return
|
||||
@@ -123,7 +123,7 @@ func Start(extraArgs string, unlockerReady, rpcReady Callback) {
|
||||
// Now that the RPC server is ready, we can get the needed
|
||||
// authentication options, and add them to the global dial
|
||||
// options.
|
||||
auth, err := lnd.AdminAuthOptions(loadedConfig)
|
||||
auth, err := lnd.AdminAuthOptions(loadedConfig, false)
|
||||
if err != nil {
|
||||
rpcReady.OnError(err)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user