[#BaseIndex-DB-WriteBestBlock] = xref:BaseIndex.adoc[BaseIndex]::xref:BaseIndex/DB.adoc[DB]::WriteBestBlock :relfileprefix: ../../ :mrdocs: Write block locator of the chain that the index is in sync with. == Synopsis Declared in `<index/base.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void WriteBestBlock( xref:CDBBatch.adoc[CDBBatch]& batch, xref:CBlockLocator.adoc[CBlockLocator] const& locator); ---- == Parameters [cols="1,4"] |=== | Name| Description | *batch* | Write batch that the update is added to. | *locator* | Block locator marking the chain the index is synced to. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#