mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-09 14:28:22 +00:00
try to fix automatically another block db inconsistency problem
This commit is contained in:
parent
c0ec1f4afe
commit
66fb23c4b8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user