Changing -zindex on or off requires reindex

This commit is contained in:
Jonathan "Duke" Leto
2019-08-21 19:50:50 -07:00
parent c91d1d1fdf
commit 76543056ab

View File

@@ -1666,9 +1666,8 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
break; break;
} }
fprintf(stderr, "zindex=%s in block index??\n", fZindex ? "enabled" : "disabled"); fprintf(stderr, "zindex=%s in block index\n", fZindex ? "enabled" : "disabled");
// Turning on -zindex requires a reindex, turning it off doesn't if (fZindex != GetBoolArg("-zindex", false)) {
if (fZindex && (fZindex != GetBoolArg("-zindex", false))) {
strLoadError = _("You need to rebuild the database using -reindex to change -zindex"); strLoadError = _("You need to rebuild the database using -reindex to change -zindex");
break; break;
} }