lnd: consolidate WalletUnlocker- and AdminAuthOptions

This commit is contained in:
Johan T. Halseth committed 2021-04-06 10:49:45 +02:00
1 parent 8789247bf9
commit db28e7c891
2 files changed
+7 -23

No files matched your search

+2 -2
View File
@@ -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