Skip to content

Commit

Permalink
resolved deadlock caused by IsInitialBlockDownload
Browse files Browse the repository at this point in the history
  • Loading branch information
mooncoindev committed Apr 3, 2017
1 parent 109c27b commit 2688e58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1419,8 +1419,8 @@ bool IsInitialBlockDownload()
static bool lockIBDState = false;
if (lockIBDState)
return false;
bool state = (chainActive.Height() < pindexBestHeader->nHeight - 24 * 60 ||
pindexBestHeader->GetBlockTime() < GetTime() - chainParams.MaxTipAge());
bool state = (chainActive.Height() < pindexBestHeader->nHeight - 24 * 6 ||
pindexBestHeader->GetBlockTime() < GetTime() - 24 * 60 * 60);
if (!state)
lockIBDState = true;
return state;
Expand Down

0 comments on commit 2688e58

Please sign in to comment.