waddrmgr/common_test: use new wallet Create api with birthday

This commit is contained in:
Conner Fromknecht 2018-04-18 20:04:12 -07:00 committed by Olaoluwa Osuntokun
parent 57b37d38f6
commit 0968cfdabc

View file

@ -10,6 +10,7 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"testing" "testing"
"time"
"github.com/roasbeef/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
"github.com/roasbeef/btcwallet/waddrmgr" "github.com/roasbeef/btcwallet/waddrmgr"
@ -223,8 +224,10 @@ func setupManager(t *testing.T) (tearDownFunc func(), db walletdb.DB, mgr *waddr
if err != nil { if err != nil {
return err return err
} }
err = waddrmgr.Create(ns, seed, pubPassphrase, err = waddrmgr.Create(
privPassphrase, &chaincfg.MainNetParams, fastScrypt) ns, seed, pubPassphrase, privPassphrase,
&chaincfg.MainNetParams, fastScrypt, time.Time{},
)
if err != nil { if err != nil {
return err return err
} }