diff --git a/lnwallet/btcwallet/btcwallet.go b/lnwallet/btcwallet/btcwallet.go index a34111f0..5ce00533 100644 --- a/lnwallet/btcwallet/btcwallet.go +++ b/lnwallet/btcwallet/btcwallet.go @@ -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