ChainstateManager::UpdateIBDStatus

Update and possibly latch the IBD status.

Synopsis

Declared in <validation.h>

[[requires_capability(0x7f2e1bc17598), requires_capability(0x7f2e146b58e8), requires_capability(0x7f2e298facb8), requires_capability(0x7f2e360b8418)]]
void
UpdateIBDStatus();

Description

If block loading has finished and the current chain tip has enough work and is recent, set m_cached_is_ibd to false. This function never sets the flag back to true.

This should be called after operations that may affect IBD exit conditions (e.g. after updating the active chain tip, or after ImportBlocks() finishes).