aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/db.h
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2020-10-30 16:25:56 -0400
committerRussell Yanofsky <russ@yanofsky.org>2020-12-04 11:03:28 -0400
commit6ee9cbdd18a70894f89dd268c276d5eb47a34827 (patch)
treeda33c80e155d8c73e3680f24807bc54f33c175c7 /src/wallet/db.h
parent5aaeb6cf877055c47fa2bbd2ea5e8d3d2033933b (diff)
downloadbitcoin-6ee9cbdd18a70894f89dd268c276d5eb47a34827.tar.xz
refactor: Replace ListWalletDir() function with ListDatabases()
No change to behavior. This is just cleanup after previous MOVEONLY commit to make db.h list function fit conventions of surrounding functions.
Diffstat (limited to 'src/wallet/db.h')
-rw-r--r--src/wallet/db.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/db.h b/src/wallet/db.h
index cc13f887b0..3d18e5cec0 100644
--- a/src/wallet/db.h
+++ b/src/wallet/db.h
@@ -223,6 +223,9 @@ enum class DatabaseStatus {
FAILED_ENCRYPT,
};
+/** Recursively list database paths in directory. */
+std::vector<fs::path> ListDatabases(const fs::path& path);
+
std::unique_ptr<WalletDatabase> MakeDatabase(const fs::path& path, const DatabaseOptions& options, DatabaseStatus& status, bilingual_str& error);
bool IsBDBFile(const fs::path& path);