wallet/wallet: update to latest SetBirthdayBlock changes

This commit is contained in:
Wilmer Paulino 2018-11-15 18:00:19 -08:00
parent f9df4908b3
commit 16ea72e95b
No known key found for this signature in database
GPG key ID: 6DF57B9F9514972F

View file

@ -498,7 +498,7 @@ func (w *Wallet) syncWithChain(birthdayStamp *waddrmgr.BlockStamp) error {
birthdayStamp.Hash) birthdayStamp.Hash)
err := w.Manager.SetBirthdayBlock( err := w.Manager.SetBirthdayBlock(
ns, *birthdayStamp, ns, *birthdayStamp, true,
) )
if err != nil { if err != nil {
tx.Rollback() tx.Rollback()
@ -664,7 +664,9 @@ func (w *Wallet) syncWithChain(birthdayStamp *waddrmgr.BlockStamp) error {
err := walletdb.Update(w.db, func(tx walletdb.ReadWriteTx) error { err := walletdb.Update(w.db, func(tx walletdb.ReadWriteTx) error {
ns := tx.ReadWriteBucket(waddrmgrNamespaceKey) ns := tx.ReadWriteBucket(waddrmgrNamespaceKey)
return w.Manager.SetBirthdayBlock(ns, *birthdayStamp) return w.Manager.SetBirthdayBlock(
ns, *birthdayStamp, true,
)
}) })
if err != nil { if err != nil {
return nil return nil