update wallet tests

This commit is contained in:
Michel van Kessel
2020-12-20 16:50:43 +01:00
parent 77bd9385d4
commit 00e1b71272

View File

@@ -2,14 +2,13 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "wallet/wallet.h"
#include "wallet/walletdb.h"
#include <wallet/wallet.h>
#include <wallet/walletdb.h>
#include "wallet/test/wallet_test_fixture.h"
#include <wallet/test/wallet_test_fixture.h>
#include <stdint.h>
#include <boost/foreach.hpp>
#include <boost/test/unit_test.hpp>
extern CWallet* pwalletMain;
@@ -24,7 +23,7 @@ GetResults(CWalletDB& walletdb, std::map<CAmount, CAccountingEntry>& results)
results.clear();
BOOST_CHECK(walletdb.ReorderTransactions(pwalletMain) == DB_LOAD_OK);
walletdb.ListAccountCreditDebit("", aes);
BOOST_FOREACH(CAccountingEntry& ae, aes)
for(CAccountingEntry& ae: aes)
{
results[ae.nOrderPos] = ae;
}