walletdb: move IsWalletLoaded to walletdb.cpp

This commit is contained in:
Andrew Chow committed 2020-06-15 17:36:08 -04:00
1 parent f6fc5f3849
commit 25a655794a
4 files changed
+8 -6

No files matched your search

-5
View File
@@ -79,11 +79,6 @@ bool IsBDBWalletLoaded(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
@@ -88,7 +88,6 @@ 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. */
fs::path WalletDataFilePath(const fs::path& wallet_path);
+5
View File
@@ -1018,3 +1018,8 @@ bool WalletBatch::TxnAbort()
{
return m_batch.TxnAbort();
}
bool IsWalletLoaded(const fs::path& wallet_path)
{
return IsBDBWalletLoaded(wallet_path);
}
+3
View File
@@ -289,4 +289,7 @@ void MaybeCompactWalletDB();
//! Unserialize a given Key-Value pair and load it into the wallet
bool ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue, std::string& strType, std::string& strErr);
/** Return whether a wallet database is currently loaded. */
bool IsWalletLoaded(const fs::path& wallet_path);
#endif // BITCOIN_WALLET_WALLETDB_H