remove duplicate bitdb.Open() code from init

- remove code from step 7, which we already have in step 5 of init
This commit is contained in:
Philip Kaufmann 2013-02-23 23:51:02 +01:00 committed by Pieter Wuille
parent af10e3f6ac
commit e79110822e

View file

@ -733,15 +733,6 @@ bool AppInit2(boost::thread_group& threadGroup)
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/
filesystem::path blocksDir = GetDataDir() / "blocks";
if (!filesystem::exists(blocksDir))