Define -zindex

This commit is contained in:
Jonathan "Duke" Leto
2019-08-18 18:55:34 -07:00
parent 5365d15e69
commit 5c310aa048
4 changed files with 32 additions and 11 deletions

View File

@@ -1668,6 +1668,12 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
break;
}
// Check for changed -zindex state
if (fZindex != GetBoolArg("-zindex", false)) {
strLoadError = _("You need to rebuild the database using -reindex to change -zindex");
break;
}
// Check for changed -prune state. What we are concerned about is a user who has pruned blocks
// in the past, but is now trying to run unpruned.
if (fHavePruned && !fPruneMode) {