Permalink
Browse files

Merge #7514: Fix IsInitialBlockDownload for testnet

8aa7226 Fix IsInitialBlockDownload to play nice with testnet (jmacwhyte)
  • Loading branch information...
laanwj committed Apr 28, 2016
2 parents 574ddc6 + 8aa7226 commit d9594bfe0c3e8818f5490979c3d94d752383352e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main.cpp
View
@@ -1583,7 +1583,7 @@ bool IsInitialBlockDownload()
if (lockIBDState)
return false;
bool state = (chainActive.Height() < pindexBestHeader->nHeight - 24 * 6 ||
pindexBestHeader->GetBlockTime() < GetTime() - nMaxTipAge);
std::max(chainActive.Tip()->GetBlockTime(), pindexBestHeader->GetBlockTime()) < GetTime() - nMaxTipAge);
if (!state)
lockIBDState = true;
return state;

0 comments on commit d9594bf

Please sign in to comment.