Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/db.cpp
Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | |||||
bool CDBEnv::Open(bool retry) { | bool CDBEnv::Open(bool retry) { | ||||
if (fDbEnvInit) { | if (fDbEnvInit) { | ||||
return true; | return true; | ||||
} | } | ||||
boost::this_thread::interruption_point(); | boost::this_thread::interruption_point(); | ||||
fs::path pathIn = strPath; | fs::path pathIn = strPath; | ||||
TryCreateDirectories(pathIn); | |||||
if (!LockDirectory(pathIn, ".walletlock")) { | if (!LockDirectory(pathIn, ".walletlock")) { | ||||
LogPrintf("Cannot obtain a lock on wallet directory %s. Another " | LogPrintf("Cannot obtain a lock on wallet directory %s. Another " | ||||
"instance of bitcoin may be using it.\n", | "instance of bitcoin may be using it.\n", | ||||
strPath); | strPath); | ||||
return false; | return false; | ||||
} | } | ||||
fs::path pathLogDir = pathIn / "database"; | fs::path pathLogDir = pathIn / "database"; | ||||
▲ Show 20 Lines • Show All 700 Lines • Show Last 20 Lines |