Merge branch 'master' into nu5-consensus

This commit is contained in:
Jack Grigg 2022-03-24 18:09:17 +00:00
commit 639e97ed4a
1 changed files with 1 additions and 1 deletions

View File

@ -4303,7 +4303,7 @@ int CWallet::ScanForWalletTransactions(
// no need to read and scan block, if block was created before
// our wallet birthday (as adjusted for block time variability)
while (pindex && nTimeFirstKey && pindex->GetBlockTime() < nTimeFirstKey - TIMESTAMP_WINDOW) {
while (chainActive.Next(pindex) != NULL && nTimeFirstKey && pindex->GetBlockTime() < nTimeFirstKey - TIMESTAMP_WINDOW) {
pindex = chainActive.Next(pindex);
}