aboutsummaryrefslogtreecommitdiff
path: root/src/rpcblockchain.cpp
diff options
context:
space:
mode:
authorAdam Weiss <adam@signal11.com>2015-06-02 15:24:53 -0400
committerWladimir J. van der Laan <laanwj@gmail.com>2015-06-11 18:25:45 +0200
commit6cb70ca4ee353ed7e54a357c08ba41d13752731a (patch)
tree6dbc256d86af7620ceaf8ad9db3ac3567eb7fe36 /src/rpcblockchain.cpp
parent37b4e425af00b285fb66ac1169d1c115e924b9a2 (diff)
Prune: Support noncontiguous block files
In some corner cases, it may be possible for recent blocks to end up in the same block file as much older blocks. Previously, the pruning code would stop looking for files to remove upon first encountering a file containing a block that cannot be pruned, now it will keep looking for candidate files until the target is met and all other criteria are satisfied. This can result in a noncontiguous set of block files (by number) on disk, which is fine except for during some reindex corner cases, so make reindex preparation smarter such that we keep the data we can actually use and throw away the rest. This allows pruning to work correctly while downloading any blocks needed during the reindex. Rebased-From: c257a8c9a6397eee40734b235a4fdcb8045aec91 Github-Pull: #6221
Diffstat (limited to 'src/rpcblockchain.cpp')
0 files changed, 0 insertions, 0 deletions