diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-06-11 18:22:10 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-06-11 18:24:35 +0200 |
commit | dd8fe8215a59c0885dd7df43ef8e245544bcab82 (patch) | |
tree | 0a5d9554cb1257fc5c757ca3517ceadaf47285ae /src/main.cpp | |
parent | 51870fc1512157de3b3b9640a9332afb7e2c3aa4 (diff) | |
parent | c257a8c9a6397eee40734b235a4fdcb8045aec91 (diff) |
Merge pull request #6221
c257a8c Prune: Support noncontiguous block files (Adam Weiss)
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
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 |