walletdb: move IsWalletLoaded to walletdb.cpp
This commit is contained in:
parent
f6fc5f3849
commit
25a655794a
4 changed files with 8 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -1018,3 +1018,8 @@ bool WalletBatch::TxnAbort()
|
|||
{
|
||||
return m_batch.TxnAbort();
|
||||
}
|
||||
|
||||
bool IsWalletLoaded(const fs::path& wallet_path)
|
||||
{
|
||||
return IsBDBWalletLoaded(wallet_path);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue