lnwallet/btcwallet/btcwallet: pass recovery window to CreateNewWallet

This commit is contained in:
Conner Fromknecht 2018-03-26 14:13:31 -07:00
parent 603228ce79
commit ae604061bf
No known key found for this signature in database
GPG Key ID: 39DE78FBE6ACB0EF

@ -88,7 +88,7 @@ func New(cfg Config) (*BtcWallet, error) {
pubPass = cfg.PublicPass
}
loader := base.NewLoader(cfg.NetParams, netDir)
loader := base.NewLoader(cfg.NetParams, netDir, cfg.RecoveryWindow)
walletExists, err := loader.WalletExists()
if err != nil {
return nil, err
@ -98,7 +98,7 @@ func New(cfg Config) (*BtcWallet, error) {
if !walletExists {
// Wallet has never been created, perform initial set up.
wallet, err = loader.CreateNewWallet(
pubPass, cfg.PrivatePass, cfg.HdSeed,
pubPass, cfg.PrivatePass, cfg.HdSeed, cfg.Birthday,
)
if err != nil {
return nil, err