Skip to content

Commit 5260a4a

Browse files
committed
Make .walletlock distinct from .lock
1 parent 64226de commit 5260a4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet/db.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void CheckUniqueFileid(const CDBEnv& env, const std::string& filename, Db& db)
5757
bool LockEnvDirectory(const fs::path& env_path)
5858
{
5959
// Make sure only a single Bitcoin process is using the wallet directory.
60-
fs::path lock_file_path = env_path / ".lock";
60+
fs::path lock_file_path = env_path / ".walletlock";
6161
FILE* file = fsbridge::fopen(lock_file_path, "a"); // empty lock file; created if it doesn't exist.
6262
if (file) fclose(file);
6363

@@ -123,7 +123,7 @@ bool CDBEnv::Open(const fs::path& pathIn, bool retry)
123123

124124
strPath = pathIn.string();
125125
if (!LockEnvDirectory(pathIn)) {
126-
LogPrintf("Cannot obtain a lock on wallet directory %s. Another instance of bitcoin may be using it.", strPath);
126+
LogPrintf("Cannot obtain a lock on wallet directory %s. Another instance of bitcoin may be using it.\n", strPath);
127127
return false;
128128
}
129129

0 commit comments

Comments
 (0)