diff --git a/wallet/chainntfns.go b/wallet/chainntfns.go index edad9e987f..96d479c49c 100644 --- a/wallet/chainntfns.go +++ b/wallet/chainntfns.go @@ -480,7 +480,9 @@ func birthdaySanityCheck(chainConn chainConn, // Otherwise, we'll attempt to locate a better one now that we have // access to the chain. - newBirthdayBlock, err := locateBirthdayBlock(chainConn, birthdayTimestamp) + // To be on the safe side, scan 2 days past of the actual timestamp. + bday := birthdayTimestamp.Add(48 * time.Hour) + newBirthdayBlock, err := locateBirthdayBlock(chainConn, bday) if err != nil { return nil, err } diff --git a/wallet/wallet.go b/wallet/wallet.go index 3b3e5c7ec1..12e05314fa 100644 --- a/wallet/wallet.go +++ b/wallet/wallet.go @@ -371,10 +371,11 @@ func (w *Wallet) syncWithChain(birthdayStamp *waddrmgr.BlockStamp) error { // If we've yet to find our birthday block, we'll do so now. if birthdayStamp == nil { - var err error - birthdayStamp, err = locateBirthdayBlock( - chainClient, w.Manager.Birthday(), - ) + + // To be on the safe side, scan 2 days past of the actual + // timestamp. + bday := w.Manager.Birthday().Add(48 * time.Hour) + birthdayStamp, err = locateBirthdayBlock(chainClient, bday) if err != nil { return fmt.Errorf("unable to locate birthday block: %v", err)