diff --git a/src/wallet/db.h b/src/wallet/db.h --- a/src/wallet/db.h +++ b/src/wallet/db.h @@ -81,6 +81,7 @@ }; /** Return whether a wallet database is currently loaded. */ +bool IsBDBWalletLoaded(const fs::path &wallet_path); bool IsWalletLoaded(const fs::path &wallet_path); /** diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp --- a/src/wallet/db.cpp +++ b/src/wallet/db.cpp @@ -79,7 +79,7 @@ } } -bool IsWalletLoaded(const fs::path &wallet_path) { +bool IsBDBWalletLoaded(const fs::path &wallet_path) { fs::path env_directory; std::string database_filename; SplitWalletPath(wallet_path, env_directory, database_filename); @@ -94,6 +94,10 @@ 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; std::string database_filename;