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"