src/base/index.cpp
bool CBlockIndex::IsSuperMajority(int minVersion, const CBlockIndex* pstart, unsigned int nRequired, unsigned int nToCheck)
{
    unsigned int nFound = 0;
    for (unsigned int i = 0; i < nToCheck && nFound < nRequired && pstart != NULL; i++)
    {
        if (pstart->nVersion >= minVersion)
            ++nFound;
        pstart = pstart->pprev;
    }
    return (nFound >= nRequired);
}
/**
 * Returns true if there are nRequired or more blocks of minVersion or above
 * in the last nToCheck blocks, starting at pstart and going backwards.
 */
Returns true if there are nRequired or more blocks of minVersion or above
in the last nToCheck blocks, starting at pstart and going backwards.
Returns true if there are nRequired or more blocks of minVersion or above in the last nToCheck blocks starting at pstart and going backwards .
bool CBlockIndex::IsSuperMajority(int minVersion, const CBlockIndex* pstart, unsigned int nRequired, unsigned int nToCheck)
{
    unsigned int nFound = 0;
    for (unsigned int i = 0; i < nToCheck && nFound < nRequired && pstart != NULL; i++)
    {
        if (pstart->nVersion >= minVersion)
            ++nFound;
        pstart = pstart->pprev;
    }
    return (nFound >= nRequired);
}
bool CBlockIndex :: IsSuperMajority ( int minVersion , const CBlockIndex * pstart , unsigned int nRequired , unsigned int nToCheck ) { unsigned int nFound = 0 ; for ( unsigned int i = 0 ; i < nToCheck && nFound < nRequired && pstart != NULL ; i ++ ) { if ( pstart -> nVersion >= minVersion ) ++ nFound ; pstart = pstart -> pprev ; } return ( nFound >= nRequired ) ; }
Returns true if there are nRequired or more blocks of minVersion or above
 in the last nToCheck blocks, starting at pstart and going backwards.
Returns true if there are nRequired or more blocks of minVersion or above in the last nToCheck blocks starting at pstart and going backwards .