aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-06-11 18:22:10 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-06-11 18:24:35 +0200
commitdd8fe8215a59c0885dd7df43ef8e245544bcab82 (patch)
tree0a5d9554cb1257fc5c757ca3517ceadaf47285ae /src/main.cpp
parent51870fc1512157de3b3b9640a9332afb7e2c3aa4 (diff)
parentc257a8c9a6397eee40734b235a4fdcb8045aec91 (diff)
Merge pull request #6221
c257a8c Prune: Support noncontiguous block files (Adam Weiss)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index cc9d277907..69c972a79f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3057,9 +3057,9 @@ void FindFilesToPrune(std::set<int>& setFilesToPrune)
if (nCurrentUsage + nBuffer < nPruneTarget) // are we below our target?
break;
- // don't prune files that could have a block within MIN_BLOCKS_TO_KEEP of the main chain's tip
+ // don't prune files that could have a block within MIN_BLOCKS_TO_KEEP of the main chain's tip but keep scanning
if (vinfoBlockFile[fileNumber].nHeightLast > nLastBlockWeCanPrune)
- break;
+ continue;
PruneOneBlockFile(fileNumber);
// Queue up the files for removal