| 2853 | } |
| 2854 | |
| 2855 | void Chainstate::ForceFlushStateToDisk(bool wipe_cache) |
| 2856 | { |
| 2857 | BlockValidationState state; |
| 2858 | if (!this->FlushStateToDisk(state, wipe_cache ? FlushStateMode::FORCE_FLUSH : FlushStateMode::FORCE_SYNC)) { |
| 2859 | LogWarning("Failed to force flush state (%s)", state.ToString()); |
| 2860 | } |
| 2861 | } |
| 2862 | |
| 2863 | void Chainstate::PruneAndFlush() |
| 2864 | { |