|
|
@ -733,15 +733,6 @@ bool AppInit2(boost::thread_group& threadGroup) |
|
|
|
|
|
|
|
|
|
|
|
fReindex = GetBoolArg("-reindex"); |
|
|
|
fReindex = GetBoolArg("-reindex"); |
|
|
|
|
|
|
|
|
|
|
|
// Todo: Check if needed, because in step 5 we do the same
|
|
|
|
|
|
|
|
if (!bitdb.Open(GetDataDir())) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
string msg = strprintf(_("Error initializing database environment %s!" |
|
|
|
|
|
|
|
" To recover, BACKUP THAT DIRECTORY, then remove" |
|
|
|
|
|
|
|
" everything from it except for wallet.dat."), strDataDir.c_str()); |
|
|
|
|
|
|
|
return InitError(msg); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Upgrading to 0.8; hard-link the old blknnnn.dat files into /blocks/
|
|
|
|
// Upgrading to 0.8; hard-link the old blknnnn.dat files into /blocks/
|
|
|
|
filesystem::path blocksDir = GetDataDir() / "blocks"; |
|
|
|
filesystem::path blocksDir = GetDataDir() / "blocks"; |
|
|
|
if (!filesystem::exists(blocksDir)) |
|
|
|
if (!filesystem::exists(blocksDir)) |
|
|
|