diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-06-11 18:22:10 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-06-11 18:24:35 +0200 |
| commit | dd8fe8215a59c0885dd7df43ef8e245544bcab82 (patch) | |
| tree | 0a5d9554cb1257fc5c757ca3517ceadaf47285ae /src/main.cpp | |
| parent | Merge pull request #6264 (diff) | |
| parent | Prune: Support noncontiguous block files (diff) | |
| download | discoin-dd8fe8215a59c0885dd7df43ef8e245544bcab82.tar.xz discoin-dd8fe8215a59c0885dd7df43ef8e245544bcab82.zip | |
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 cc9d27790..69c972a79 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 |