mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-28 13:52:55 +02:00
multi: use "bitcoin" chain name constant
Make use of the `bitcoinChainName` constant instead of re-writing the "bitcoin" string.
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
8a195ed761
commit
1211e7eb7b
@@ -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