aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/db.cpp
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.cpp
parent5aaeb6cf877055c47fa2bbd2ea5e8d3d2033933b (diff)
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.cpp')
-rw-r--r--src/wallet/db.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp
index 85aeaeb3ab..e8b8b8abc1 100644
--- a/src/wallet/db.cpp
+++ b/src/wallet/db.cpp
@@ -10,8 +10,6 @@
#include <string>
-fs::path GetWalletDir();
-
#ifdef USE_BDB
bool ExistsBerkeleyDatabase(const fs::path& path);
#else
@@ -23,9 +21,8 @@ bool ExistsSQLiteDatabase(const fs::path& path);
# define ExistsSQLiteDatabase(path) (false)
#endif
-std::vector<fs::path> ListWalletDir()
+std::vector<fs::path> ListDatabases(const fs::path& wallet_dir)
{
- const fs::path wallet_dir = GetWalletDir();
const size_t offset = wallet_dir.string().size() + 1;
std::vector<fs::path> paths;
boost::system::error_code ec;