aboutsummaryrefslogtreecommitdiff
path: root/src/qt/clientmodel.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2013-10-12 16:21:37 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2013-10-15 11:55:47 +0200
commit47970dac41f685810663e44c058a37fd1485a532 (patch)
tree3b029638532999b613158f84adb4db611311dbc2 /src/qt/clientmodel.cpp
parentb2ba55c42b563418e7be4adb38cdbf1852e6c78d (diff)
downloadbitcoin-47970dac41f685810663e44c058a37fd1485a532.tar.xz
clientmodel: remove 2 hard-coded values, use CChainParams instead
Diffstat (limited to 'src/qt/clientmodel.cpp')
-rw-r--r--src/qt/clientmodel.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp
index af96f11bf2..1846b3f7c8 100644
--- a/src/qt/clientmodel.cpp
+++ b/src/qt/clientmodel.cpp
@@ -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