lnwallet: add dirty config

This commit is contained in:
Olaoluwa Osuntokun
2015-12-29 15:59:57 -06:00
parent f1717b9620
commit 7640e57cdc
3 changed files with 13 additions and 27 deletions

View File

@ -30,7 +30,6 @@ import (
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btcutil"
"github.com/btcsuite/btcutil/hdkeychain"
"github.com/btcsuite/btcwallet/waddrmgr"
"github.com/btcsuite/btcwallet/wallet"
@ -38,25 +37,6 @@ import (
_ "github.com/btcsuite/btcwallet/walletdb/bdb"
)
var (
// TODO(roasbeef): lnwallet config file
lnwalletHomeDir = btcutil.AppDataDir("lnwallet", false)
defaultDataDir = lnwalletHomeDir
defaultLogFilename = "lnwallet.log"
defaultLogDirname = "logs"
// defaultPubPassphrase is the default public wallet passphrase which is
// used when the user indicates they do not want additional protection
// provided by having all public data in the wallet encrypted by a
// passphrase only known to them.
defaultPubPassphrase = []byte("public")
defaultLogDir = filepath.Join(lnwalletHomeDir, defaultLogDirname)
walletDbName = "lnwallet.db"
)
// filesExists reports whether the named file or directory exists.
func fileExists(name string) bool {
if _, err := os.Stat(name); err != nil {