From d652e7dd048d1a879e2e0f2ce20e9ce9dcdcc653 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Wed, 18 Apr 2018 20:04:41 -0700 Subject: [PATCH] waddrmgr/manager_test: use new wallet Create api with birthday --- waddrmgr/manager_test.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/waddrmgr/manager_test.go b/waddrmgr/manager_test.go index ab58abb..9589601 100644 --- a/waddrmgr/manager_test.go +++ b/waddrmgr/manager_test.go @@ -1749,8 +1749,10 @@ func TestManager(t *testing.T) { if err != nil { return err } - err = waddrmgr.Create(ns, seed, pubPassphrase, privPassphrase, - &chaincfg.MainNetParams, fastScrypt) + err = waddrmgr.Create( + ns, seed, pubPassphrase, privPassphrase, + &chaincfg.MainNetParams, fastScrypt, time.Time{}, + ) if err != nil { return err } @@ -1770,7 +1772,7 @@ func TestManager(t *testing.T) { err = walletdb.Update(db, func(tx walletdb.ReadWriteTx) error { ns := tx.ReadWriteBucket(waddrmgrNamespaceKey) return waddrmgr.Create(ns, seed, pubPassphrase, privPassphrase, - &chaincfg.MainNetParams, fastScrypt) + &chaincfg.MainNetParams, fastScrypt, time.Time{}) }) if !checkManagerError(t, "Create existing", err, waddrmgr.ErrAlreadyExists) { mgr.Close() @@ -1965,7 +1967,7 @@ func TestScopedKeyManagerManagement(t *testing.T) { } err = waddrmgr.Create( ns, seed, pubPassphrase, privPassphrase, - &chaincfg.MainNetParams, fastScrypt, + &chaincfg.MainNetParams, fastScrypt, time.Time{}, ) if err != nil { return err @@ -2216,7 +2218,7 @@ func TestRootHDKeyNeutering(t *testing.T) { } err = waddrmgr.Create( ns, seed, pubPassphrase, privPassphrase, - &chaincfg.MainNetParams, fastScrypt, + &chaincfg.MainNetParams, fastScrypt, time.Time{}, ) if err != nil { return err @@ -2311,7 +2313,7 @@ func TestNewRawAccount(t *testing.T) { } err = waddrmgr.Create( ns, seed, pubPassphrase, privPassphrase, - &chaincfg.MainNetParams, fastScrypt, + &chaincfg.MainNetParams, fastScrypt, time.Time{}, ) if err != nil { return err