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:
parent
af10e3f6ac
commit
e79110822e
1 changed files with 0 additions and 9 deletions
|
@ -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…
Reference in a new issue