예제 #1
0
QDateTime ClientModel::getLastBlockDate() const
{
    if (pindexBest)
        return QDateTime::fromTime_t(pindexBest->GetBlockTime());
    else if(!isTestNet())
        return QDateTime::fromTime_t(1231006505); // Genesis block's time                       Время genesis(первоначального) блока
    else
        return QDateTime::fromTime_t(1296688602); // Genesis block's time (testnet)
}
예제 #2
0
QDateTime ClientModel::getLastBlockDate() const
{
    if (pindexBest)
        return QDateTime::fromTime_t(pindexBest->GetBlockTime());
    else if(!isTestNet())
        return QDateTime::fromTime_t(1497449710); // Genesis block's time
    else
        return QDateTime::fromTime_t(1497449710); // Genesis block's time (testnet)
}
예제 #3
0
QDateTime ClientModel::getLastBlockDate() const
{
    if (chainActive.Tip())
        return QDateTime::fromTime_t(chainActive.Tip()->GetBlockTime());
    else if(!isTestNet())
        return QDateTime::fromTime_t(1231006505); // Genesis block's time
    else
        return QDateTime::fromTime_t(1296688602); // Genesis block's time (testnet)
}