|
|
@ -1177,15 +1177,8 @@ 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; |
|
|
|
static int64_t nLastUpdate; |
|
|
|
return (chainActive.Height() < pindexBestHeader->nHeight - 24 * 6 || |
|
|
|
static CBlockIndex* pindexLastBest; |
|
|
|
pindexBestHeader->GetBlockTime() < GetTime() - 24 * 60 * 60); |
|
|
|
if (chainActive.Tip() != pindexLastBest) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
pindexLastBest = chainActive.Tip(); |
|
|
|
|
|
|
|
nLastUpdate = GetTime(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return (GetTime() - nLastUpdate < 10 && |
|
|
|
|
|
|
|
chainActive.Tip()->GetBlockTime() < GetTime() - 24 * 60 * 60); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool fLargeWorkForkFound = false; |
|
|
|
bool fLargeWorkForkFound = false; |
|
|
|