aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAlex Morcos <morcos@chaincode.com>2015-10-19 14:43:04 -0400
committerAlex Morcos <morcos@chaincode.com>2015-10-19 14:43:04 -0400
commitd3b09f6bac738958b6bf5711bcb5291049b7466d (patch)
tree73b6fdec569a2480f366ee7dc036bbe7165ba8ed /src/main.cpp
parentda7d57fb9501ad8939a2923f2a60fa540eae8cfa (diff)
downloadbitcoin-d3b09f6bac738958b6bf5711bcb5291049b7466d.tar.xz
Do not allow blockfile pruning during reindex.
Also clarify startup message.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index baad7fc050..95c71b9cc0 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1881,7 +1881,7 @@ bool static FlushStateToDisk(CValidationState &state, FlushStateMode mode) {
std::set<int> setFilesToPrune;
bool fFlushForPrune = false;
try {
- if (fPruneMode && fCheckForPruning) {
+ if (fPruneMode && fCheckForPruning && !fReindex) {
FindFilesToPrune(setFilesToPrune);
fCheckForPruning = false;
if (!setFilesToPrune.empty()) {