File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -1177,15 +1177,8 @@ bool IsInitialBlockDownload()
1177
1177
LOCK (cs_main);
1178
1178
if (fImporting || fReindex || chainActive.Height () < Checkpoints::GetTotalBlocksEstimate ())
1179
1179
return true ;
1180
- static int64_t nLastUpdate;
1181
- static CBlockIndex* pindexLastBest;
1182
- if (chainActive.Tip () != pindexLastBest)
1183
- {
1184
- pindexLastBest = chainActive.Tip ();
1185
- nLastUpdate = GetTime ();
1186
- }
1187
- return (GetTime () - nLastUpdate < 10 &&
1188
- chainActive.Tip ()->GetBlockTime () < GetTime () - 24 * 60 * 60 );
1180
+ return (chainActive.Height () < pindexBestHeader->nHeight - 24 * 6 ||
1181
+ pindexBestHeader->GetBlockTime () < GetTime () - 24 * 60 * 60 );
1189
1182
}
1190
1183
1191
1184
bool fLargeWorkForkFound = false ;
You can’t perform that action at this time.
0 commit comments