lnwallet: allow configurable net param for wallet create/open

This commit is contained in:
Olaoluwa Osuntokun committed 2016-02-03 12:01:44 -08:00
1 parent 98bbd314a7
commit 74ee5334f4
2 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -270,7 +270,7 @@ func NewLightningWallet(config *Config) (*LightningWallet, walletdb.DB, error) {
// Attempt to create a new wallet
if err := createWallet(config.PrivatePass, pubPass,
config.HdSeed, dbPath); err != nil {
config.HdSeed, dbPath, config.NetParams); err != nil {
fmt.Fprintln(os.Stderr, err)
return nil, nil, err
}
@@ -280,7 +280,7 @@ func NewLightningWallet(config *Config) (*LightningWallet, walletdb.DB, error) {
// Wallet has been created and been initialized at this point, open it
// along with all the required DB namepsaces, and the DB itself.
wallet, db, err := openWallet(pubPass, netDir)
wallet, db, err := openWallet(pubPass, netDir, config.NetParams)
if err != nil {
return nil, nil, err
}