src/main.cpp
// ppcoin: total coin age spent in block, in the unit of coin-days.
total coin age spent in block, in the unit of coin-days.
total coin age spent in block in the unit of coin - days .
bool CBlock::GetCoinAge(uint64_t& nCoinAge) const
{
    nCoinAge = 0;
    CTxDB txdb("r");
    BOOST_FOREACH(const CTransaction& tx, vtx)
    {
        uint64_t nTxCoinAge;
        if (tx.GetCoinAge(txdb, nTxCoinAge))
            nCoinAge += nTxCoinAge;
        else
            return false;
    }
    if (nCoinAge == 0) 
        nCoinAge = 1;
    if (fDebug && GetBoolArg("-printcoinage"))
        LogPrintf("block coin age total nCoinDays=%d\n", nCoinAge);
    return true;
}
bool CBlock :: GetCoinAge ( uint64_t & nCoinAge ) const { nCoinAge = 0 ; CTxDB txdb ( " " ) ; BOOST_FOREACH ( const CTransaction & tx , vtx ) { uint64_t nTxCoinAge ; if ( tx . GetCoinAge ( txdb , nTxCoinAge ) ) nCoinAge += nTxCoinAge ; else return false ; } if ( nCoinAge == 0 ) nCoinAge = 1 ; if ( fDebug && GetBoolArg ( " " ) ) LogPrintf ( " \n " , nCoinAge ) ; return true ; }
ppcoin: total coin age spent in block, in the unit of coin-days.
ppcoin : total coin age spent in block in the unit of coin - days .
// Block coin age minimum 1 coin-day