bug: int -> int64_t (#1179)

This commit is contained in:
UdjinM6 2016-12-02 16:53:28 +04:00 committed by GitHub
parent 8c12ab2b47
commit b847642428

View File

@ -35,7 +35,7 @@ bool CMasternodeSync::IsBlockchainSynced()
return false; return false;
// same as !IsInitialBlockDownload() but no cs_main needed here // same as !IsInitialBlockDownload() but no cs_main needed here
int nMaxBlockTime = std::max(pCurrentBlockIndex->GetBlockTime(), pindexBestHeader->GetBlockTime()); int64_t nMaxBlockTime = std::max(pCurrentBlockIndex->GetBlockTime(), pindexBestHeader->GetBlockTime());
fBlockchainSynced = pindexBestHeader->nHeight - pCurrentBlockIndex->nHeight < 24 * 6 && fBlockchainSynced = pindexBestHeader->nHeight - pCurrentBlockIndex->nHeight < 24 * 6 &&
GetTime() - nMaxBlockTime < Params().MaxTipAge(); GetTime() - nMaxBlockTime < Params().MaxTipAge();