From 16ea72e95bb53ec3e6598bb85fbb45eb3c28ac38 Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Thu, 15 Nov 2018 18:00:19 -0800 Subject: [PATCH] wallet/wallet: update to latest SetBirthdayBlock changes --- wallet/wallet.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wallet/wallet.go b/wallet/wallet.go index 8455975..f5abdf5 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -498,7 +498,7 @@ func (w *Wallet) syncWithChain(birthdayStamp *waddrmgr.BlockStamp) error { birthdayStamp.Hash) err := w.Manager.SetBirthdayBlock( - ns, *birthdayStamp, + ns, *birthdayStamp, true, ) if err != nil { tx.Rollback() @@ -664,7 +664,9 @@ func (w *Wallet) syncWithChain(birthdayStamp *waddrmgr.BlockStamp) error { err := walletdb.Update(w.db, func(tx walletdb.ReadWriteTx) error { ns := tx.ReadWriteBucket(waddrmgrNamespaceKey) - return w.Manager.SetBirthdayBlock(ns, *birthdayStamp) + return w.Manager.SetBirthdayBlock( + ns, *birthdayStamp, true, + ) }) if err != nil { return nil