multi: use "bitcoin" chain name constant

Make use of the `bitcoinChainName` constant instead of re-writing the
"bitcoin" string.
This commit is contained in:
Elle Mouton
2023-09-05 11:47:00 +02:00
committed by Olaoluwa Osuntokun
parent 8a195ed761
commit 1211e7eb7b
4 changed files with 9 additions and 6 deletions

View File

@@ -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.