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

+2 -1
View File
@@ -11,6 +11,7 @@ import (
"sync/atomic"
"github.com/btcsuite/btcd/chaincfg"
"github.com/lightningnetwork/lnd"
"github.com/lightningnetwork/lnd/chanbackup"
"github.com/lightningnetwork/lnd/kvdb/etcd"
"github.com/lightningnetwork/lnd/lntest/wait"
@@ -157,7 +158,7 @@ func (cfg BaseNodeConfig) DBPath() string {
func (cfg BaseNodeConfig) ChanBackupPath() string {
return filepath.Join(
cfg.DataDir, "chain", "bitcoin",
cfg.DataDir, "chain", lnd.BitcoinChainName,
fmt.Sprintf(
"%v/%v", cfg.NetParams.Name,
chanbackup.DefaultBackupFileName,