mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 18:53:23 -03:00
Output line to debug.log when IsInitialBlockDownload latches to false
This commit is contained in:
parent
79aeff6e08
commit
65d484adf9
1 changed files with 1 additions and 0 deletions
|
@ -1141,6 +1141,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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue