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

Initialize the CoinsViews UTXO set database management data structures&period; The in&hyphen;memory cache is initialized separately&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
InitCoinsDB(
    size&lowbar;t cache&lowbar;size&lowbar;bytes,
    bool in&lowbar;memory,
    bool should&lowbar;wipe);
----

== Description

All parameters forwarded to CoinsViews&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cache&lowbar;size&lowbar;bytes*
| Size budget for the on&hyphen;disk coins database cache&period;
| *in&lowbar;memory*
| Whether the database should be kept in memory only&period;
| *should&lowbar;wipe*
| Whether to wipe any existing database contents&period;
|===


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