[#ChainstateManager-UpdateIBDStatus]
= xref:ChainstateManager.adoc[ChainstateManager]::UpdateIBDStatus
:relfileprefix: ../
:mrdocs:

Update and possibly latch the IBD status&period;

== Synopsis

Declared in `&lt;validation&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1bc17598), requires&lowbar;capability(0x7f2e146b58e8), requires&lowbar;capability(0x7f2e298facb8), requires&lowbar;capability(0x7f2e360b8418)&rsqb;&rsqb;
void
UpdateIBDStatus();
----

== Description

If block loading has finished and the current chain tip has enough work and is recent, set `m&lowbar;cached&lowbar;is&lowbar;ibd` to false&period; This function never sets the flag back to true&period;

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


[.small]#Created with https://www.mrdocs.com[MrDocs]#
