MCPcopy Create free account
hub / github.com/LUX-Core/lux / GetAccountCreditDebit

Method GetAccountCreditDebit

src/walletdb.cpp:293–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293CAmount CWalletDB::GetAccountCreditDebit(const string& strAccount)
294{
295 list<CAccountingEntry> entries;
296 ListAccountCreditDebit(strAccount, entries);
297
298 CAmount nCreditDebit = 0;
299 for (const CAccountingEntry& entry : entries)
300 nCreditDebit += entry.nCreditDebit;
301
302 return nCreditDebit;
303}
304
305void CWalletDB::ListAccountCreditDebit(const string& strAccount, list<CAccountingEntry>& entries)
306{

Callers 1

GetAccountBalanceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected