Allow wallet files not in -walletdir directory

Remove restriction that -wallet filenames can only refer to files in the
-walletdir directory.
This commit is contained in:
Russell Yanofsky
2017-11-14 13:32:41 -05:00
parent d8a99f65e5
commit 26c06f24e5
5 changed files with 42 additions and 37 deletions

View File

@@ -122,6 +122,7 @@ bool CDBEnv::Open(bool retry)
boost::this_thread::interruption_point();
fs::path pathIn = strPath;
TryCreateDirectories(pathIn);
if (!LockDirectory(pathIn, ".walletlock")) {
LogPrintf("Cannot obtain a lock on wallet directory %s. Another instance of bitcoin may be using it.\n", strPath);
return false;