mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Add CWallet::ListAccountCreditDebit
Simple pass through for CWalletDB::ListAccountCreditDebit
This commit is contained in:
parent
a82e5d8220
commit
59adc86680
@ -23,7 +23,7 @@ GetResults(CWalletDB& walletdb, std::map<CAmount, CAccountingEntry>& results)
|
|||||||
|
|
||||||
results.clear();
|
results.clear();
|
||||||
BOOST_CHECK(walletdb.ReorderTransactions(pwalletMain) == DB_LOAD_OK);
|
BOOST_CHECK(walletdb.ReorderTransactions(pwalletMain) == DB_LOAD_OK);
|
||||||
walletdb.ListAccountCreditDebit("", aes);
|
pwalletMain->ListAccountCreditDebit("", aes);
|
||||||
BOOST_FOREACH(CAccountingEntry& ae, aes)
|
BOOST_FOREACH(CAccountingEntry& ae, aes)
|
||||||
{
|
{
|
||||||
results[ae.nOrderPos] = ae;
|
results[ae.nOrderPos] = ae;
|
||||||
|
@ -2501,6 +2501,11 @@ bool CWallet::CommitTransaction(CWalletTx& wtxNew, CReserveKey& reservekey, CCon
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CWallet::ListAccountCreditDebit(const std::string& strAccount, std::list<CAccountingEntry>& entries) {
|
||||||
|
CWalletDB walletdb(strWalletFile);
|
||||||
|
return walletdb.ListAccountCreditDebit(strAccount, entries);
|
||||||
|
}
|
||||||
|
|
||||||
bool CWallet::AddAccountingEntry(const CAccountingEntry& acentry, CWalletDB & pwalletdb)
|
bool CWallet::AddAccountingEntry(const CAccountingEntry& acentry, CWalletDB & pwalletdb)
|
||||||
{
|
{
|
||||||
if (!pwalletdb.WriteAccountingEntry_Backend(acentry))
|
if (!pwalletdb.WriteAccountingEntry_Backend(acentry))
|
||||||
|
@ -775,6 +775,7 @@ public:
|
|||||||
std::string& strFailReason, const CCoinControl *coinControl = NULL, bool sign = true);
|
std::string& strFailReason, const CCoinControl *coinControl = NULL, bool sign = true);
|
||||||
bool CommitTransaction(CWalletTx& wtxNew, CReserveKey& reservekey, CConnman* connman);
|
bool CommitTransaction(CWalletTx& wtxNew, CReserveKey& reservekey, CConnman* connman);
|
||||||
|
|
||||||
|
void ListAccountCreditDebit(const std::string& strAccount, std::list<CAccountingEntry>& entries);
|
||||||
bool AddAccountingEntry(const CAccountingEntry&, CWalletDB & pwalletdb);
|
bool AddAccountingEntry(const CAccountingEntry&, CWalletDB & pwalletdb);
|
||||||
|
|
||||||
static CFeeRate minTxFee;
|
static CFeeRate minTxFee;
|
||||||
|
Loading…
Reference in New Issue
Block a user