clientmodel: remove 2 hard-coded values, use CChainParams instead

This commit is contained in:
Philip Kaufmann 2013-10-12 16:21:37 +02:00
parent b2ba55c42b
commit 47970dac41

View file

@ -55,10 +55,8 @@ 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)
return QDateTime::fromTime_t(Params().GenesisBlock().nTime); // Genesis block's time of current network
}
double ClientModel::getVerificationProgress() const