[#BaseIndex-BlockUntilSyncedToCurrentChain]
= xref:BaseIndex.adoc[BaseIndex]::BlockUntilSyncedToCurrentChain
:relfileprefix: ../
:mrdocs:

Blocks the current thread until the index is caught up to the current state of the block chain&period; This only blocks if the index has gotten in sync once and only needs to process blocks in the ValidationInterface queue&period; If the index is catching up from far behind, this method does not block and immediately returns false&period;

== Synopsis

Declared in `&lt;index&sol;base&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;locks&lowbar;excluded(0x7f2e26d83708), locks&lowbar;excluded(0x7f2e3567e0e8), locks&lowbar;excluded(0x7f2e3a1d77d8), locks&lowbar;excluded(0x7f2e286ab468), locks&lowbar;excluded(0x7f2e093909c8)&rsqb;&rsqb;
bool
BlockUntilSyncedToCurrentChain() const;
----

== Return Value

True if the index was caught up, or false if it is still catching up from far behind&period;


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