[#FlushStateMode] = FlushStateMode :mrdocs: How aggressively FlushStateToDisk should flush chainstate to disk. == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class FlushStateMode : uint8_t; ---- == Members [cols="1,4"] |=== | Name| Description | `NONE` | Only prune if needed; do not otherwise flush. | `IF_NEEDED` | Flush only if the caches are too large or a write is overdue. | `PERIODIC` | Flush if enough time has passed since the last write. | `FORCE_FLUSH` | Always flush the caches to disk. | `FORCE_SYNC` | Always flush and fsync the data to durable storage. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#