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

Restore the running UTXO statistics from the database on startup&period;

== Synopsis

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

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

== Return Value

True on success&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *block*
| Best block recorded in the database, if any&period;
|===


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