aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-04-11 12:45:59 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-04-11 12:45:59 +0200
commit0000d8f727be937baa1499a6d15efa5a48b0ffdd (patch)
tree953ca19625d368d791a70b37867bf20c7eb60102 /src
parent2311c7cc86b7d3ab4912601ea0c21cc81a9f5eec (diff)
downloadbitcoin-0000d8f727be937baa1499a6d15efa5a48b0ffdd.tar.xz
Document how FlushStateMode::NONE is handled
Diffstat (limited to 'src')
-rw-r--r--src/validation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index 1ef57f878b..8066e6c7a8 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -2064,6 +2064,9 @@ bool CChainState::ConnectBlock(const CBlock& block, CValidationState& state, CBl
* The caches and indexes are flushed depending on the mode we're called with
* if they're too large, if it's been a while since the last write,
* or always and in all cases if we're in prune mode and are deleting files.
+ *
+ * If FlushStateMode::NONE is used, then FlushStateToDisk(...) won't do anything
+ * besides checking if we need to prune.
*/
bool static FlushStateToDisk(const CChainParams& chainparams, CValidationState &state, FlushStateMode mode, int nManualPruneHeight) {
int64_t nMempoolUsage = mempool.DynamicMemoryUsage();