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

Function GetSynchronizationState

src/validation.cpp:3286–3291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3284}
3285
3286static SynchronizationState GetSynchronizationState(bool init, bool blockfiles_indexed)
3287{
3288 if (!init) return SynchronizationState::POST_INIT;
3289 if (!blockfiles_indexed) return SynchronizationState::INIT_REINDEX;
3290 return SynchronizationState::INIT_DOWNLOAD;
3291}
3292
3293void ChainstateManager::UpdateIBDStatus()
3294{

Callers 5

NotifyHeaderTipMethod · 0.85
ActivateBestChainMethod · 0.85
InvalidateBlockMethod · 0.85
ReportHeadersPresyncMethod · 0.85
LoadChainTipMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected