aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2013-10-17 04:45:37 -0700
committerWladimir J. van der Laan <laanwj@gmail.com>2013-10-17 04:45:37 -0700
commit13b1ecf0d08fffc8093f3e669c1d5c33b8b69a3f (patch)
tree5ef9cbac8d00fccf80c09eb7e3706629d54d6a65 /src
parenta5bba245a3a5fabd037b3812e9d987dfc94a8fcf (diff)
parent47970dac41f685810663e44c058a37fd1485a532 (diff)
Merge pull request #3084 from Diapolo/clientmodel
clientmodel: remove 2 hard-coded values, use CChainParams instead
Diffstat (limited to 'src')
-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 2bab488135..212fa6974a 100644
--- a/src/qt/clientmodel.cpp
+++ b/src/qt/clientmodel.cpp
@@ -65,10 +65,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