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

Resize the CoinsViews caches dynamically and flush state to disk&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f9513ab4518), requires&lowbar;capability(0x7f9502c97588), requires&lowbar;capability(0x7f95254492b8), requires&lowbar;capability(0x7f95173ff598)&rsqb;&rsqb;
bool
ResizeCoinsCaches(
    size&lowbar;t coinstip&lowbar;size,
    size&lowbar;t coinsdb&lowbar;size);
----

== Return Value

true unless an error occurred during the flush&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *coinstip&lowbar;size*
| New size budget for the in&hyphen;memory coins cache&period;
| *coinsdb&lowbar;size*
| New size budget for the on&hyphen;disk coins database cache&period;
|===


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