diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2020-10-30 16:11:28 -0400 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2020-12-04 11:03:28 -0400 |
commit | 5aaeb6cf877055c47fa2bbd2ea5e8d3d2033933b (patch) | |
tree | 577ee2c0bd473e27216f1ec8dc9b8eb35454e44c /src/wallet/bdb.h | |
parent | 751ffaabad82f7904fd1d9742a0b323a0ab7bfee (diff) | |
download | bitcoin-5aaeb6cf877055c47fa2bbd2ea5e8d3d2033933b.tar.xz |
MOVEONLY: Move IsBDBFile, IsSQLiteFile, and ListWalletDir
This commit does not change to any code and behavior. It it is easily reviewed
with the --color-moved=dimmed_zebra git diff option.
Motivation for this change is to:
- Consolidate redundant functions
IsBDBFile /ExistsBerkeleyDatabase / SplitWalletPath, and
IsSQLiteFile / ExistsSQLiteDatabase in the next commits
- Detect SQLite wallets consistently regardless whether bitcoin is built with
SQLite support in the next commits
- Avoid attempting to open SQLite databases with the BDB library when bitcoin
is built without SQLite support in the next commits
Diffstat (limited to 'src/wallet/bdb.h')
-rw-r--r-- | src/wallet/bdb.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/wallet/bdb.h b/src/wallet/bdb.h index 4f97665f08..935d0f947d 100644 --- a/src/wallet/bdb.h +++ b/src/wallet/bdb.h @@ -86,9 +86,6 @@ public: /** Get BerkeleyEnvironment and database filename given a wallet path. */ std::shared_ptr<BerkeleyEnvironment> GetWalletEnv(const fs::path& wallet_path, std::string& database_filename); -/** Check format of database file */ -bool IsBDBFile(const fs::path& path); - class BerkeleyBatch; /** An instance of this class represents one database. |