[#CCoinsCacheEntry-Flags]
= xref:CCoinsCacheEntry.adoc[CCoinsCacheEntry]::Flags
:relfileprefix: ../
:mrdocs:

Per&hyphen;entry state flags controlling how an entry is flushed to the parent cache&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum Flags;
----

== Members

[cols="1,4"]
|===
| Name| Description
| `DIRTY` 
| DIRTY means the CCoinsCacheEntry is potentially different from the version in the parent cache&period; Failure to mark a coin as DIRTY when it is potentially different from the parent cache will cause a consensus failure, since the coin&apos;s state won&apos;t get written to the parent when the cache is flushed&period;
| `FRESH` 
| FRESH means the parent cache does not have this coin or that it is a spent coin in the parent cache&period; If a FRESH coin in the cache is later spent, it can be deleted entirely and doesn&apos;t ever need to be flushed to the parent&period; This is a performance optimization&period; Marking a coin as FRESH when it exists unspent in the parent cache will cause a consensus failure, since it might not be deleted from the parent when this cache is flushed&period;
|===



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