keychain/interface_test: init test wallet w/o recovery window

This commit is contained in:
Conner Fromknecht 2018-03-26 14:11:40 -07:00
parent 1972a795e5
commit b9df5e75f7
No known key found for this signature in database
GPG Key ID: 39DE78FBE6ACB0EF

@ -6,6 +6,7 @@ import (
"math/rand"
"os"
"testing"
"time"
"github.com/roasbeef/btcd/chaincfg"
"github.com/roasbeef/btcd/chaincfg/chainhash"
@ -42,11 +43,13 @@ func createTestBtcWallet(coinType uint32) (func(), *wallet.Wallet, error) {
if err != nil {
return nil, nil, err
}
loader := wallet.NewLoader(&chaincfg.SimNetParams, tempDir)
loader := wallet.NewLoader(&chaincfg.SimNetParams, tempDir, 0)
pass := []byte("test")
baseWallet, err := loader.CreateNewWallet(pass, pass, testHDSeed[:])
baseWallet, err := loader.CreateNewWallet(
pass, pass, testHDSeed[:], time.Time{},
)
if err != nil {
return nil, nil, err
}