AutoSyncThin Fix
@@ -387,7 +387,7 @@ namespace Checkpoints
{
const CBlockThinIndex *pindex = pindexBestHeader;
// Search backward for a block within max span and maturity window
- while (pindex->pprev && pindex->nHeight + nCheckpointSpan > pindexBest->nHeight)
+ while (pindex->pprev && (pindex->GetBlockTime() + nCheckpointSpan * nTargetSpacing > pindexBestHeader->GetBlockTime() || pindex->nHeight + nCheckpointSpan > pindexBestHeader->nHeight))
pindex = pindex->pprev;
return pindex;
}
