diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2020-10-30 16:48:04 -0400 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2020-12-04 11:03:28 -0400 |
commit | f3d870fc2271bf45e0269e5ae135bced1a26f620 (patch) | |
tree | ae81d9543787927ca5c135f754b4b5327ba1ecf4 /src/wallet/db.cpp | |
parent | d70dc89e78ee6355e0bc37cc36cfc04ef7a86885 (diff) | |
download | bitcoin-f3d870fc2271bf45e0269e5ae135bced1a26f620.tar.xz |
wallet: List all wallets in non-SQLite or non-BDB builds
This commit does not change behavior when bitcoin is built normally with both
the SQLite and BDB libraries. It just makes non-SQLite and non-BDB builds
more similar to the normal build. Specifically:
- It makes wallet directory lists always include all wallets so wallets don't
appear missing depending on the build.
- It now triggers specific "Build does not support SQLite database format" and
"Build does not support Berkeley DB database format" errors if a wallet can't
be loaded instead of the more ambiguous and scary "Data is not in recognized
format" error.
Diffstat (limited to 'src/wallet/db.cpp')
-rw-r--r-- | src/wallet/db.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp index 425b14b8f9..cd49baeb78 100644 --- a/src/wallet/db.cpp +++ b/src/wallet/db.cpp @@ -74,10 +74,6 @@ fs::path SQLiteDataFile(const fs::path& path) bool IsBDBFile(const fs::path& path) { -#ifndef USE_BDB - return false; -#endif - if (!fs::exists(path)) return false; // A Berkeley DB Btree file has at least 4K. @@ -103,10 +99,6 @@ bool IsBDBFile(const fs::path& path) bool IsSQLiteFile(const fs::path& path) { -#ifndef USE_SQLITE - return false; -#endif - if (!fs::exists(path)) return false; // A SQLite Database file is at least 512 bytes. |