Browse Source

Changing -zindex on or off requires reindex

warmup
Jonathan "Duke" Leto 5 years ago
parent
commit
76543056ab
  1. 5
      src/init.cpp

5
src/init.cpp

@ -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;
} }

Loading…
Cancel
Save