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

Method UpdateIBDStatus

src/validation.cpp:3293–3301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3291}
3292
3293void ChainstateManager::UpdateIBDStatus()
3294{
3295 AssertLockHeld(cs_main);
3296 if (!m_cached_is_ibd.load(std::memory_order_relaxed)) return;
3297 if (m_blockman.LoadingBlocks()) return;
3298 if (!CurrentChainstate().m_chain.IsTipRecent(MinimumChainWork(), m_options.max_tip_age)) return;
3299 LogInfo("Leaving InitialBlockDownload (latching to false)");
3300 m_cached_is_ibd.store(false, std::memory_order_relaxed);
3301}
3302
3303bool ChainstateManager::NotifyHeaderTip()
3304{

Callers 6

AppInitMainFunction · 0.80
DisconnectTipMethod · 0.80
ConnectTipMethod · 0.80
LoadChainTipMethod · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80

Calls 2

LoadingBlocksMethod · 0.80
loadMethod · 0.45

Tested by 1

BOOST_FIXTURE_TEST_CASEFunction · 0.64