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

Initialize internal state from the database and block index&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
virtual
bool
CustomInit(std::optional&lt;interfaces::BlockRef&gt; const& block);
----

== Return Value

True on success&period;

[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&period;
|===


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