Output line to debug.log when IsInitialBlockDownload latches to false

This commit is contained in:
Alex Morcos
2018-05-15 22:18:11 +12:00
committed by Jack Grigg
parent f04a90afb2
commit bbff8631f5
+1
View File
@@ -1746,6 +1746,7 @@ bool IsInitialBlockDownload()
return true; return true;
if (chainActive.Tip()->GetBlockTime() < (GetTime() - nMaxTipAge)) if (chainActive.Tip()->GetBlockTime() < (GetTime() - nMaxTipAge))
return true; return true;
LogPrintf("Leaving InitialBlockDownload (latching to false)\n");
latchToFalse.store(true, std::memory_order_relaxed); latchToFalse.store(true, std::memory_order_relaxed);
return false; return false;
} }