wallet/wallet: update to latest SetBirthdayBlock changes
This commit is contained in:
parent
f9df4908b3
commit
16ea72e95b
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue