Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.h
Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | public: | ||||
/// This writes directly to the database, and will not update the CWallet's | /// This writes directly to the database, and will not update the CWallet's | ||||
/// cached accounting entries! | /// cached accounting entries! | ||||
/// Use wallet.AddAccountingEntry instead, to write *and* update its caches. | /// Use wallet.AddAccountingEntry instead, to write *and* update its caches. | ||||
bool WriteAccountingEntry(const uint64_t nAccEntryNum, | bool WriteAccountingEntry(const uint64_t nAccEntryNum, | ||||
const CAccountingEntry &acentry); | const CAccountingEntry &acentry); | ||||
bool ReadAccount(const std::string &strAccount, CAccount &account); | bool ReadAccount(const std::string &strAccount, CAccount &account); | ||||
bool WriteAccount(const std::string &strAccount, const CAccount &account); | bool WriteAccount(const std::string &strAccount, const CAccount &account); | ||||
bool EraseAccount(const std::string &strAccount); | |||||
/// Write destination data key,value tuple to database. | /// Write destination data key,value tuple to database. | ||||
bool WriteDestData(const CTxDestination &address, const std::string &key, | bool WriteDestData(const CTxDestination &address, const std::string &key, | ||||
const std::string &value); | const std::string &value); | ||||
/// Erase destination data tuple from wallet database. | /// Erase destination data tuple from wallet database. | ||||
bool EraseDestData(const CTxDestination &address, const std::string &key); | bool EraseDestData(const CTxDestination &address, const std::string &key); | ||||
Amount GetAccountCreditDebit(const std::string &strAccount); | Amount GetAccountCreditDebit(const std::string &strAccount); | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |