Merge pull request #1774 from luke-jr/refactor_times

Bugfix: Require OrderedTxItems to provide properly scoped accounting entry list
This commit is contained in:
Gavin Andresen 2012-09-02 16:47:58 -07:00
commit eaf00a3a5d
3 changed files with 12 additions and 6 deletions

View file

@ -1006,7 +1006,8 @@ Value listtransactions(const Array& params, bool fHelp)
Array ret;
CWallet::TxItems txOrdered = pwalletMain->OrderedTxItems(strAccount);
std::list<CAccountingEntry> acentries;
CWallet::TxItems txOrdered = pwalletMain->OrderedTxItems(acentries, strAccount);
// iterate backwards until we have nCount items to return:
for (CWallet::TxItems::reverse_iterator it = txOrdered.rbegin(); it != txOrdered.rend(); ++it)