Bitcoin-Qt: add Genesis blocks time for testnet
- add the Genesis blocks time for the testnet in ClientModel::getLastBlockDate()
This commit is contained in:
parent
8da48cb561
commit
8d432cd66d
1 changed files with 3 additions and 1 deletions
|
@ -52,8 +52,10 @@ QDateTime ClientModel::getLastBlockDate() const
|
||||||
{
|
{
|
||||||
if (pindexBest)
|
if (pindexBest)
|
||||||
return QDateTime::fromTime_t(pindexBest->GetBlockTime());
|
return QDateTime::fromTime_t(pindexBest->GetBlockTime());
|
||||||
else
|
else if(!isTestNet())
|
||||||
return QDateTime::fromTime_t(1231006505); // Genesis block's time
|
return QDateTime::fromTime_t(1231006505); // Genesis block's time
|
||||||
|
else
|
||||||
|
return QDateTime::fromTime_t(1296688602); // Genesis block's time (testnet)
|
||||||
}
|
}
|
||||||
|
|
||||||
double ClientModel::getVerificationProgress() const
|
double ClientModel::getVerificationProgress() const
|
||||||
|
|
Loading…
Reference in a new issue