From e6cc46d84ee4bedb74cab7ad9bd2ca71a64d4864 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Thu, 12 Oct 2017 11:07:58 +0200 Subject: [PATCH] lnwallet: export btcwallet.NetworkDir --- lnwallet/btcwallet/btcwallet.go | 2 +- lnwallet/btcwallet/config.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lnwallet/btcwallet/btcwallet.go b/lnwallet/btcwallet/btcwallet.go index d4209d15..06eabc6d 100644 --- a/lnwallet/btcwallet/btcwallet.go +++ b/lnwallet/btcwallet/btcwallet.go @@ -61,7 +61,7 @@ var _ lnwallet.WalletController = (*BtcWallet)(nil) // configuration struct. func New(cfg Config) (*BtcWallet, error) { // Ensure the wallet exists or create it when the create flag is set. - netDir := networkDir(cfg.DataDir, cfg.NetParams) + netDir := NetworkDir(cfg.DataDir, cfg.NetParams) var pubPass []byte if cfg.PublicPass == nil { diff --git a/lnwallet/btcwallet/config.go b/lnwallet/btcwallet/config.go index 532ef3ca..08eaacae 100644 --- a/lnwallet/btcwallet/config.go +++ b/lnwallet/btcwallet/config.go @@ -77,9 +77,9 @@ type Config struct { NetParams *chaincfg.Params } -// networkDir returns the directory name of a network directory to hold wallet +// NetworkDir returns the directory name of a network directory to hold wallet // files. -func networkDir(dataDir string, chainParams *chaincfg.Params) string { +func NetworkDir(dataDir string, chainParams *chaincfg.Params) string { netname := chainParams.Name // For now, we must always name the testnet data directory as "testnet"