aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2013-04-05 02:37:24 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2013-04-05 02:37:24 -0700
commit430cbad4112781e90f9c5d87443b0b5f7c2a4a08 (patch)
treef37b5a61e26eec739bfbde28af00e732cb5449ed /src/qt
parent99840360bfd2eb6445fa18800d681e4fef5fc3f0 (diff)
parent8d432cd66d545c70189f8eb720b3a0b6ca02bbd0 (diff)
Merge pull request #2460 from Diapolo/clientmodel
Bitcoin-Qt: add Genesis blocks time for testnet
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/clientmodel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp
index ae66924181..863176aa1b 100644
--- a/src/qt/clientmodel.cpp
+++ b/src/qt/clientmodel.cpp
@@ -52,8 +52,10 @@ QDateTime ClientModel::getLastBlockDate() const
{
if (pindexBest)
return QDateTime::fromTime_t(pindexBest->GetBlockTime());
- else
+ else if(!isTestNet())
return QDateTime::fromTime_t(1231006505); // Genesis block's time
+ else
+ return QDateTime::fromTime_t(1296688602); // Genesis block's time (testnet)
}
double ClientModel::getVerificationProgress() const