Browse Source

Merge #7514: Fix IsInitialBlockDownload for testnet

8aa7226 Fix IsInitialBlockDownload to play nice with testnet (jmacwhyte)
0.13
Wladimir J. van der Laan 9 years ago
parent
commit
d9594bfe0c
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/main.cpp

2
src/main.cpp

@ -1583,7 +1583,7 @@ bool IsInitialBlockDownload() @@ -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;

Loading…
Cancel
Save