multi: use "bitcoin" chain name constant
Make use of the `bitcoinChainName` constant instead of re-writing the "bitcoin" string.
This commit is contained in:
1 parent
8a195ed761
commit
1211e7eb7b
4 files changed
+9
-6
No files matched your search
@@ -259,7 +259,7 @@ var (
|
||||
defaultBtcdDir = btcutil.AppDataDir(btcdBackendName, false)
|
||||
defaultBtcdRPCCertFile = filepath.Join(defaultBtcdDir, "rpc.cert")
|
||||
|
||||
defaultBitcoindDir = btcutil.AppDataDir("bitcoin", false)
|
||||
defaultBitcoindDir = btcutil.AppDataDir(BitcoinChainName, false)
|
||||
|
||||
defaultTorSOCKS = net.JoinHostPort("localhost", strconv.Itoa(defaultTorSOCKSPort))
|
||||
defaultTorDNS = net.JoinHostPort(defaultTorDNSHost, strconv.Itoa(defaultTorDNSPort))
|
||||
@@ -1811,7 +1811,7 @@ func parseRPCParams(cConfig *lncfg.Chain, nodeConfig interface{},
|
||||
daemonName = bitcoindBackendName
|
||||
confDir = conf.Dir
|
||||
confFile = conf.ConfigPath
|
||||
confFileBase = "bitcoin"
|
||||
confFileBase = BitcoinChainName
|
||||
|
||||
// Check that cookie and credentials don't contradict each
|
||||
// other.
|
||||
|
||||
Reference in new issue
Block a user