diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2017-11-14 13:32:41 -0500 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2018-03-03 10:26:55 -0500 |
commit | 26c06f24e5dcc32a7599abb8d670d22993c82bc2 (patch) | |
tree | e8d9e757900e0c0d019a4a0b04c8fdd06e51c5fb /src/wallet/db.cpp | |
parent | d8a99f65e53019becdd8d2631396012bafb29741 (diff) |
Allow wallet files not in -walletdir directory
Remove restriction that -wallet filenames can only refer to files in the
-walletdir directory.
Diffstat (limited to 'src/wallet/db.cpp')
-rw-r--r-- | src/wallet/db.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp index 88463d10b2..0ef3b7e926 100644 --- a/src/wallet/db.cpp +++ b/src/wallet/db.cpp @@ -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; |