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:
parent
f92cc4db42
commit
cc77e41198
1 changed files with 1 additions and 0 deletions
|
@ -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: "+
|
||||
|
|
Loading…
Add table
Reference in a new issue