mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-02 17:52:28 +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
@@ -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,
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user