|
|
@ -48,7 +48,10 @@ int ClientModel::getNumBlocksAtStartup() |
|
|
|
|
|
|
|
|
|
|
|
QDateTime ClientModel::getLastBlockDate() const |
|
|
|
QDateTime ClientModel::getLastBlockDate() const |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if (pindexBest) |
|
|
|
return QDateTime::fromTime_t(pindexBest->GetBlockTime()); |
|
|
|
return QDateTime::fromTime_t(pindexBest->GetBlockTime()); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
return QDateTime::fromTime_t(1231006505); // Genesis block's time
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void ClientModel::updateTimer() |
|
|
|
void ClientModel::updateTimer() |
|
|
|