|
|
@ -1583,7 +1583,7 @@ bool IsInitialBlockDownload() |
|
|
|
if (lockIBDState) |
|
|
|
if (lockIBDState) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
bool state = (chainActive.Height() < pindexBestHeader->nHeight - 24 * 6 || |
|
|
|
bool state = (chainActive.Height() < pindexBestHeader->nHeight - 24 * 6 || |
|
|
|
pindexBestHeader->GetBlockTime() < GetTime() - nMaxTipAge); |
|
|
|
std::max(chainActive.Tip()->GetBlockTime(), pindexBestHeader->GetBlockTime()) < GetTime() - nMaxTipAge); |
|
|
|
if (!state) |
|
|
|
if (!state) |
|
|
|
lockIBDState = true; |
|
|
|
lockIBDState = true; |
|
|
|
return state; |
|
|
|
return state; |
|
|
|