try to fix automatically another block db inconsistency problem

This commit is contained in:
Miguel Freitas 2013-10-26 13:08:37 -02:00
parent c0ec1f4afe
commit 66fb23c4b8

View File

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