wallet/chainntfns: set height for new birthday block candidate

In this commit, we address an issue that would cause users to be stuck
in an infinite loop by fetching the same candidate birthday block due to
its height not being updated if the sanity check was attempting to fix
an estimate in the future. We fix this by setting the new candidate
height so that new candidate blocks can be fetched and tested.
This commit is contained in:
Wilmer Paulino 2018-11-19 00:19:20 -08:00
parent f92cc4db42
commit cc77e41198
No known key found for this signature in database
GPG key ID: 6DF57B9F9514972F

View file

@ -526,6 +526,7 @@ func birthdaySanityCheck(chainConn chainConn,
}
candidate.Hash = *hash
candidate.Height = int32(newCandidateHeight)
candidate.Timestamp = header.Timestamp
log.Debugf("Checking next birthday block candidate: "+