MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / IsInitialBlockDownload

Method IsInitialBlockDownload

src/validation.cpp:1946–1949  ·  view source on GitHub ↗

Lock-free: depends on `m_cached_is_ibd`, which is latched by `UpdateIBDStatus()`.

Source from the content-addressed store, hash-verified

1944
1945// Lock-free: depends on `m_cached_is_ibd`, which is latched by `UpdateIBDStatus()`.
1946bool ChainstateManager::IsInitialBlockDownload() const noexcept
1947{
1948 return m_cached_is_ibd.load(std::memory_order_relaxed);
1949}
1950
1951void Chainstate::CheckForkWarningConditions()
1952{

Callers 15

BlockConnectedMethod · 0.80
BlockCheckedMethod · 0.80
LogBlockHeaderMethod · 0.80
ProcessMessageMethod · 0.80
MaybeSendAddrMethod · 0.80
MaybeSendFeefilterMethod · 0.80
SendMessagesMethod · 0.80
EXCLUSIVE_LOCKS_REQUIREDFunction · 0.80
FlushStateToDiskMethod · 0.80
UpdateTipMethod · 0.80
ActivateBestChainMethod · 0.80

Calls 1

loadMethod · 0.45

Tested by 1

BOOST_FIXTURE_TEST_CASEFunction · 0.64