Browse Source

remove duplicate bitdb.Open() code from init

- remove code from step 7, which we already have in step 5 of init
miguelfreitas
Philip Kaufmann 12 years ago committed by Pieter Wuille
parent
commit
e79110822e
  1. 9
      src/init.cpp

9
src/init.cpp

@ -733,15 +733,6 @@ bool AppInit2(boost::thread_group& threadGroup) @@ -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))

Loading…
Cancel
Save