diff options
| author | Philip Kaufmann <[email protected]> | 2013-04-04 22:15:47 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2013-04-04 22:15:47 +0200 |
| commit | 8d432cd66d545c70189f8eb720b3a0b6ca02bbd0 (patch) | |
| tree | 7eb3766d45a095f8ffd101fd95538389b4bf8c9e /src | |
| parent | Merge pull request #2454 from TheBlueMatt/master (diff) | |
| download | discoin-8d432cd66d545c70189f8eb720b3a0b6ca02bbd0.tar.xz discoin-8d432cd66d545c70189f8eb720b3a0b6ca02bbd0.zip | |
Bitcoin-Qt: add Genesis blocks time for testnet
- add the Genesis blocks time for the testnet in
ClientModel::getLastBlockDate()
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt/clientmodel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp index ae6692418..863176aa1 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 |