[#BaseIndex-CustomInit] = xref:BaseIndex.adoc[BaseIndex]::CustomInit :relfileprefix: ../ :mrdocs: Initialize internal state from the database and block index. == Synopsis Declared in `<index/base.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] virtual bool CustomInit(std::optional<interfaces::BlockRef> const& block); ---- == Return Value True on success. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *block* | Best block recorded in the database, if any. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#