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

index&lowbar;sync Sync the index with the block index starting from the current best block&period; Intended to be run in its own thread, m&lowbar;thread&lowbar;sync, and can be interrupted with m&lowbar;interrupt&period; Once the index gets in sync, the m&lowbar;synced flag is set and the BlockConnected ValidationInterface callback takes over and the sync thread exits&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
Sync();
----


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