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 authored and Olaoluwa Osuntokun committed 2023-10-06 16:34:47 -07:00
1 parent 8a195ed761
commit 1211e7eb7b
4 files changed
+9 -6

No files matched your search

+3 -2
View File
@@ -15,6 +15,7 @@ import (
"syscall"
"github.com/btcsuite/btcd/btcutil"
"github.com/lightningnetwork/lnd"
"github.com/lightningnetwork/lnd/build"
"github.com/lightningnetwork/lnd/lncfg"
"github.com/lightningnetwork/lnd/lnrpc"
@@ -301,8 +302,8 @@ func extractPathArgs(ctx *cli.Context) (string, string, error) {
// lnddir/data/chain/<chain>/<network> in order to fetch the
// macaroon that we need.
macPath = filepath.Join(
lndDir, defaultDataDir, defaultChainSubDir, "bitcoin",
network, defaultMacaroonFilename,
lndDir, defaultDataDir, defaultChainSubDir,
lnd.BitcoinChainName, network, defaultMacaroonFilename,
)
}