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

Dictates whether we need to flush the cache to disk or not, using explicit limits&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1ba850d8), requires&lowbar;capability(0x7f2e14564d28), requires&lowbar;capability(0x7f2e373bded8), requires&lowbar;capability(0x7f2e36e34b28)&rsqb;&rsqb;
xref:CoinsCacheSizeState.adoc[CoinsCacheSizeState]
GetCoinsCacheSizeState(
    size&lowbar;t max&lowbar;coins&lowbar;cache&lowbar;size&lowbar;bytes,
    size&lowbar;t max&lowbar;mempool&lowbar;size&lowbar;bytes);
----

== Return Value

The state of the size of the coins cache&period;

== Parameters

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


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