Skip to content

Commit

Permalink
Merge #7514: Fix IsInitialBlockDownload for testnet
Browse files Browse the repository at this point in the history
8aa7226 Fix IsInitialBlockDownload to play nice with testnet (jmacwhyte)
  • Loading branch information
laanwj committed Apr 28, 2016
2 parents 574ddc6 + 8aa7226 commit d9594bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit d9594bf

Please sign in to comment.