walletdb: Add IsBDBWalletLoaded to look for BDB wallets specifically

This commit is contained in:
Andrew Chow committed 2020-06-15 17:36:06 -04:00
1 parent c3538f435a
commit f6fc5f3849
2 files changed
+7 -1

No files matched your search

+6 -1
View File
@@ -67,7 +67,7 @@ void SplitWalletPath(const fs::path& wallet_path, fs::path& env_directory, std::
}
}
bool IsWalletLoaded(const fs::path& wallet_path)
bool IsBDBWalletLoaded(const fs::path& wallet_path)
{
fs::path env_directory;
std::string database_filename;
@@ -79,6 +79,11 @@ bool IsWalletLoaded(const fs::path& wallet_path)
return database && database->IsDatabaseLoaded(database_filename);
}
bool IsWalletLoaded(const fs::path& wallet_path)
{
return IsBDBWalletLoaded(wallet_path);
}
fs::path WalletDataFilePath(const fs::path& wallet_path)
{
fs::path env_directory;
+1
View File
@@ -87,6 +87,7 @@ public:
};
/** Return whether a wallet database is currently loaded. */
bool IsBDBWalletLoaded(const fs::path& wallet_path);
bool IsWalletLoaded(const fs::path& wallet_path);
/** Given a wallet directory path or legacy file path, return path to main data file in the wallet database. */