[#Chainstate-InitCoinsCache]
= xref:Chainstate.adoc[Chainstate]::InitCoinsCache
:relfileprefix: ../
:mrdocs:

Initialize the in&hyphen;memory coins cache (to be done after the health of the on&hyphen;disk database is verified)&period;

== Synopsis

Declared in `&lt;validation&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1ba83728), requires&lowbar;capability(0x7f2e14563378), requires&lowbar;capability(0x7f2e373bc528), requires&lowbar;capability(0x7f2e36e33178)&rsqb;&rsqb;
void
InitCoinsCache(size&lowbar;t cache&lowbar;size&lowbar;bytes);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cache&lowbar;size&lowbar;bytes*
| Size budget for the in&hyphen;memory coins cache&period;
|===


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