[#FlushStateMode]
= FlushStateMode
:mrdocs:

How aggressively FlushStateToDisk should flush chainstate to disk&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum class FlushStateMode : uint8&lowbar;t;
----

== Members

[cols="1,4"]
|===
| Name| Description
| `NONE` 
| Only prune if needed&semi; do not otherwise flush&period;
| `IF&lowbar;NEEDED` 
| Flush only if the caches are too large or a write is overdue&period;
| `PERIODIC` 
| Flush if enough time has passed since the last write&period;
| `FORCE&lowbar;FLUSH` 
| Always flush the caches to disk&period;
| `FORCE&lowbar;SYNC` 
| Always flush and fsync the data to durable storage&period;
|===



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