Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/walletdb.cpp
Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | return m_batch.Read(std::make_pair(std::string("acc"), strAccount), | ||||
account); | account); | ||||
} | } | ||||
bool WalletBatch::WriteAccount(const std::string &strAccount, | bool WalletBatch::WriteAccount(const std::string &strAccount, | ||||
const CAccount &account) { | const CAccount &account) { | ||||
return WriteIC(std::make_pair(std::string("acc"), strAccount), account); | return WriteIC(std::make_pair(std::string("acc"), strAccount), account); | ||||
} | } | ||||
bool WalletBatch::EraseAccount(const std::string &strAccount) { | |||||
return EraseIC(std::make_pair(std::string("acc"), strAccount)); | |||||
} | |||||
bool WalletBatch::WriteAccountingEntry(const uint64_t nAccEntryNum, | bool WalletBatch::WriteAccountingEntry(const uint64_t nAccEntryNum, | ||||
const CAccountingEntry &acentry) { | const CAccountingEntry &acentry) { | ||||
return WriteIC( | return WriteIC( | ||||
std::make_pair(std::string("acentry"), | std::make_pair(std::string("acentry"), | ||||
std::make_pair(acentry.strAccount, nAccEntryNum)), | std::make_pair(acentry.strAccount, nAccEntryNum)), | ||||
acentry); | acentry); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 697 Lines • Show Last 20 Lines |