// Check against synchronized checkpoint bool CheckSync(int nHeight) { const CBlockIndex* pindexSync = AutoSelectSyncCheckpoint(); if (nHeight <= pindexSync->nHeight){ return false; } return true; }
// Check against synchronized checkpoint bool CheckSync(int nHeight) { if(nNodeMode == NT_FULL) { const CBlockIndex* pindexSync = AutoSelectSyncCheckpoint(); if (nHeight <= pindexSync->nHeight) return false; } else { const CBlockThinIndex *pindexSync = AutoSelectSyncThinCheckpoint(); if (nHeight <= pindexSync->nHeight) return false; } return true; }