Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.h
Show First 20 Lines • Show All 303 Lines • ▼ Show 20 Lines | |||||
//! Unserialize a given Key-Value pair and load it into the wallet | //! Unserialize a given Key-Value pair and load it into the wallet | ||||
bool ReadKeyValue(CWallet *pwallet, CDataStream &ssKey, CDataStream &ssValue, | bool ReadKeyValue(CWallet *pwallet, CDataStream &ssKey, CDataStream &ssValue, | ||||
std::string &strType, std::string &strErr); | std::string &strType, std::string &strErr); | ||||
/** Return whether a wallet database is currently loaded. */ | /** Return whether a wallet database is currently loaded. */ | ||||
bool IsWalletLoaded(const fs::path &wallet_path); | bool IsWalletLoaded(const fs::path &wallet_path); | ||||
/** Return object for accessing database at specified path. */ | |||||
std::unique_ptr<BerkeleyDatabase> CreateWalletDatabase(const fs::path &path); | |||||
/** | |||||
* Return object for accessing dummy database with no read/write capabilities. | |||||
*/ | |||||
std::unique_ptr<BerkeleyDatabase> CreateDummyWalletDatabase(); | |||||
/** Return object for accessing temporary in-memory database. */ | |||||
std::unique_ptr<BerkeleyDatabase> CreateMockWalletDatabase(); | |||||
#endif // BITCOIN_WALLET_WALLETDB_H | #endif // BITCOIN_WALLET_WALLETDB_H |