[#ChainstateManager-m_cached_is_ibd]
= xref:ChainstateManager.adoc[ChainstateManager]::m&lowbar;cached&lowbar;is&lowbar;ibd
:relfileprefix: ../
:mrdocs:

Whether initial block download (IBD) is ongoing&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::atomic&lowbar;bool m&lowbar;cached&lowbar;is&lowbar;ibd = &lcub;true&rcub;;
----

== Description

This value is used for lock&hyphen;free IBD checks, and latches from true to false once block loading has finished and the current chain tip has enough work and is recent&period;


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