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

@@ -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,
)
}