mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-13 14:14:00 +01:00
Merge pull request #3084 from Diapolo/clientmodel
clientmodel: remove 2 hard-coded values, use CChainParams instead
This commit is contained in:
@@ -65,10 +65,8 @@ QDateTime ClientModel::getLastBlockDate() const
|
|||||||
{
|
{
|
||||||
if (chainActive.Tip())
|
if (chainActive.Tip())
|
||||||
return QDateTime::fromTime_t(chainActive.Tip()->GetBlockTime());
|
return QDateTime::fromTime_t(chainActive.Tip()->GetBlockTime());
|
||||||
else if(!isTestNet())
|
|
||||||
return QDateTime::fromTime_t(1231006505); // Genesis block's time
|
|
||||||
else
|
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
|
double ClientModel::getVerificationProgress() const
|
||||||
|
|||||||
Reference in New Issue
Block a user