Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.h
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | public: | ||||
bool WriteName(const std::string &strAddress, const std::string &strName); | bool WriteName(const std::string &strAddress, const std::string &strName); | ||||
bool EraseName(const std::string &strAddress); | bool EraseName(const std::string &strAddress); | ||||
bool WritePurpose(const std::string &strAddress, | bool WritePurpose(const std::string &strAddress, | ||||
const std::string &purpose); | const std::string &purpose); | ||||
bool ErasePurpose(const std::string &strAddress); | bool ErasePurpose(const std::string &strAddress); | ||||
bool WriteTx(const CWalletTx &wtx); | bool WriteTx(const CWalletTx &wtx); | ||||
bool EraseTx(uint256 hash); | bool EraseTx(TxHash hash); | ||||
bool WriteKey(const CPubKey &vchPubKey, const CPrivKey &vchPrivKey, | bool WriteKey(const CPubKey &vchPubKey, const CPrivKey &vchPrivKey, | ||||
const CKeyMetadata &keyMeta); | const CKeyMetadata &keyMeta); | ||||
bool WriteCryptedKey(const CPubKey &vchPubKey, | bool WriteCryptedKey(const CPubKey &vchPubKey, | ||||
const std::vector<uint8_t> &vchCryptedSecret, | const std::vector<uint8_t> &vchCryptedSecret, | ||||
const CKeyMetadata &keyMeta); | const CKeyMetadata &keyMeta); | ||||
bool WriteMasterKey(unsigned int nID, const CMasterKey &kMasterKey); | bool WriteMasterKey(unsigned int nID, const CMasterKey &kMasterKey); | ||||
Show All 30 Lines | public: | ||||
/// Erase destination data tuple from wallet database. | /// Erase destination data tuple from wallet database. | ||||
bool EraseDestData(const std::string &address, const std::string &key); | bool EraseDestData(const std::string &address, const std::string &key); | ||||
Amount GetAccountCreditDebit(const std::string &strAccount); | Amount GetAccountCreditDebit(const std::string &strAccount); | ||||
void ListAccountCreditDebit(const std::string &strAccount, | void ListAccountCreditDebit(const std::string &strAccount, | ||||
std::list<CAccountingEntry> &acentries); | std::list<CAccountingEntry> &acentries); | ||||
DBErrors LoadWallet(CWallet *pwallet); | DBErrors LoadWallet(CWallet *pwallet); | ||||
DBErrors FindWalletTx(CWallet *pwallet, std::vector<uint256> &vTxHash, | DBErrors FindWalletTx(CWallet *pwallet, std::vector<TxHash> &vTxHash, | ||||
std::vector<CWalletTx> &vWtx); | std::vector<CWalletTx> &vWtx); | ||||
DBErrors ZapWalletTx(CWallet *pwallet, std::vector<CWalletTx> &vWtx); | DBErrors ZapWalletTx(CWallet *pwallet, std::vector<CWalletTx> &vWtx); | ||||
DBErrors ZapSelectTx(CWallet *pwallet, std::vector<uint256> &vHashIn, | DBErrors ZapSelectTx(CWallet *pwallet, std::vector<TxHash> &vHashIn, | ||||
std::vector<uint256> &vHashOut); | std::vector<TxHash> &vHashOut); | ||||
static bool Recover(CDBEnv &dbenv, const std::string &filename, | static bool Recover(CDBEnv &dbenv, const std::string &filename, | ||||
bool fOnlyKeys); | bool fOnlyKeys); | ||||
static bool Recover(CDBEnv &dbenv, const std::string &filename); | static bool Recover(CDBEnv &dbenv, const std::string &filename); | ||||
//! 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); | ||||
static void IncrementUpdateCounter(); | static void IncrementUpdateCounter(); | ||||
Show All 10 Lines |