mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-18 13:07:58 +02:00
lnwallet: export btcwallet.NetworkDir
This commit is contained in:
parent
b29af869c7
commit
e6cc46d84e
2 changed files with 3 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue