Browse Source

try to fix automatically another block db inconsistency problem

miguelfreitas
Miguel Freitas 11 years ago
parent
commit
66fb23c4b8
  1. 5
      src/init.cpp

5
src/init.cpp

@ -726,6 +726,11 @@ bool AppInit2(boost::thread_group& threadGroup)
strLoadError = _("Corrupted block database detected"); strLoadError = _("Corrupted block database detected");
break; break;
} }
if( mapBlockIndex.size() > 1000 && nBestHeight == 0 ) {
strLoadError = _("mapBlockIndex detected but nBestHeight still zero, trying to repair (reindex)");
break;
}
} catch(std::exception &e) { } catch(std::exception &e) {
strLoadError = _("Error opening block database"); strLoadError = _("Error opening block database");
break; break;

Loading…
Cancel
Save