diff options
| author | Philip Kaufmann <[email protected]> | 2013-02-23 23:51:02 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2013-04-24 00:49:50 +0200 |
| commit | e79110822efdc5fef27b1b24232a0655359e7df3 (patch) | |
| tree | 1b341906d968306ebcecdcc6d667d97d0c2d61ba | |
| parent | Merge pull request #2526 from Diapolo/Qt_misc (diff) | |
| download | discoin-e79110822efdc5fef27b1b24232a0655359e7df3.tar.xz discoin-e79110822efdc5fef27b1b24232a0655359e7df3.zip | |
remove duplicate bitdb.Open() code from init
- remove code from step 7, which we already have in step 5 of init
| -rw-r--r-- | src/init.cpp | 9 |
1 files changed, 0 insertions, 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)) |