|
|
@ -1177,8 +1177,14 @@ bool IsInitialBlockDownload() |
|
|
|
LOCK(cs_main); |
|
|
|
LOCK(cs_main); |
|
|
|
if (fImporting || fReindex || chainActive.Height() < Checkpoints::GetTotalBlocksEstimate()) |
|
|
|
if (fImporting || fReindex || chainActive.Height() < Checkpoints::GetTotalBlocksEstimate()) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
return (chainActive.Height() < pindexBestHeader->nHeight - 24 * 6 || |
|
|
|
static bool lockIBDState = false; |
|
|
|
|
|
|
|
if (lockIBDState) |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
bool state = (chainActive.Height() < pindexBestHeader->nHeight - 24 * 6 || |
|
|
|
pindexBestHeader->GetBlockTime() < GetTime() - 24 * 60 * 60); |
|
|
|
pindexBestHeader->GetBlockTime() < GetTime() - 24 * 60 * 60); |
|
|
|
|
|
|
|
if (!state) |
|
|
|
|
|
|
|
lockIBDState = true; |
|
|
|
|
|
|
|
return state; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool fLargeWorkForkFound = false; |
|
|
|
bool fLargeWorkForkFound = false; |
|
|
|