From e79110822efdc5fef27b1b24232a0655359e7df3 Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Sat, 23 Feb 2013 23:51:02 +0100 Subject: [PATCH] remove duplicate bitdb.Open() code from init - remove code from step 7, which we already have in step 5 of init --- src/init.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/init.cpp b/src/init.cpp index f6485c3b1..11b7554ed 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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))