Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.h
Show First 20 Lines • Show All 269 Lines • ▼ Show 20 Lines | public: | ||||
DBErrors LoadWallet(CWallet *pwallet); | DBErrors LoadWallet(CWallet *pwallet); | ||||
DBErrors FindWalletTx(std::vector<TxId> &txIds, std::list<CWalletTx> &vWtx); | DBErrors FindWalletTx(std::vector<TxId> &txIds, std::list<CWalletTx> &vWtx); | ||||
DBErrors ZapWalletTx(std::list<CWalletTx> &vWtx); | DBErrors ZapWalletTx(std::list<CWalletTx> &vWtx); | ||||
DBErrors ZapSelectTx(std::vector<TxId> &txIdsIn, | DBErrors ZapSelectTx(std::vector<TxId> &txIdsIn, | ||||
std::vector<TxId> &txIdsOut); | std::vector<TxId> &txIdsOut); | ||||
/* Function to determine if a certain KV/key-type is a key (cryptographical | /* Function to determine if a certain KV/key-type is a key (cryptographical | ||||
* key) type */ | * key) type */ | ||||
static bool IsKeyType(const std::string &strType); | static bool IsKeyType(const std::string &strType); | ||||
/* verifies the database environment */ | |||||
static bool VerifyEnvironment(const fs::path &wallet_path, | |||||
bilingual_str &errorStr); | |||||
/* verifies the database file */ | |||||
static bool VerifyDatabaseFile(const fs::path &wallet_path, | |||||
bilingual_str &errorStr); | |||||
//! write the hdchain model (external chain child index counter) | //! write the hdchain model (external chain child index counter) | ||||
bool WriteHDChain(const CHDChain &chain); | bool WriteHDChain(const CHDChain &chain); | ||||
bool WriteWalletFlags(const uint64_t flags); | bool WriteWalletFlags(const uint64_t flags); | ||||
//! Begin a new transaction | //! Begin a new transaction | ||||
bool TxnBegin(); | bool TxnBegin(); | ||||
//! Commit current transaction | //! Commit current transaction | ||||
Show All 32 Lines |