diff options
| author | João Barbosa <[email protected]> | 2019-04-29 00:05:55 +0100 |
|---|---|---|
| committer | João Barbosa <[email protected]> | 2019-04-29 00:07:55 +0100 |
| commit | 70c1cf8c1c07091544d060191715027282e87b57 (patch) | |
| tree | cfd6866d3e6ce7c619b83fe167e60c64ac46f546 /src | |
| parent | Merge #15901: wallet: log on rescan completion (diff) | |
| download | discoin-70c1cf8c1c07091544d060191715027282e87b57.tar.xz discoin-70c1cf8c1c07091544d060191715027282e87b57.zip | |
wallet: Avoid logging no_such_file_or_directory error
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet/walletutil.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/walletutil.cpp b/src/wallet/walletutil.cpp index 2d8adf8ba..b227a1555 100644 --- a/src/wallet/walletutil.cpp +++ b/src/wallet/walletutil.cpp @@ -31,6 +31,8 @@ fs::path GetWalletDir() static bool IsBerkeleyBtree(const fs::path& path) { + if (!fs::exists(path)) return false; + // A Berkeley DB Btree file has at least 4K. // This check also prevents opening lock files. boost::system::error_code ec; |