src/main.cpp
// select stake target limit according to hard-coded conditions
select stake target limit according to hard-coded conditions
select stake target limit according to hard - coded conditions
CBigNum inline GetProofOfStakeLimit(int nHeight, unsigned int nTime)
{
    if(fTestNet) 
        return bnProofOfStakeLimit;
    if(nTime > TARGETS_SWITCH_TIME) 
        return bnProofOfStakeLimit;
    if(nHeight + 1 > 15000) 
        return bnProofOfStakeLegacyLimit;
    if(nHeight + 1 > 14060) 
        return bnProofOfStakeHardLimit;
    return bnProofOfWorkLimit; 
}
CBigNum inline GetProofOfStakeLimit ( int nHeight , unsigned int nTime ) { if ( fTestNet ) return bnProofOfStakeLimit ; if ( nTime > TARGETS_SWITCH_TIME ) return bnProofOfStakeLimit ; if ( nHeight + 1 > 15000 ) return bnProofOfStakeLegacyLimit ; if ( nHeight + 1 > 14060 ) return bnProofOfStakeHardLimit ; return bnProofOfWorkLimit ; }
select stake target limit according to hard-coded conditions
select stake target limit according to hard - coded conditions
// separate proof of stake target limit for testnet // 27 bits since 20 July 2013 // 24 bits since block 15000 // 31 bits since block 14060 until 15000 // return bnProofOfWorkLimit of none matched