From 00e1b7127230005a30d4e497e7c81e4a90185fff Mon Sep 17 00:00:00 2001 From: Michel van Kessel Date: Sun, 20 Dec 2020 16:50:43 +0100 Subject: [PATCH] update wallet tests --- src/wallet/test/accounting_tests.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/wallet/test/accounting_tests.cpp b/src/wallet/test/accounting_tests.cpp index d075b2b64..3ad324e5d 100644 --- a/src/wallet/test/accounting_tests.cpp +++ b/src/wallet/test/accounting_tests.cpp @@ -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 +#include -#include "wallet/test/wallet_test_fixture.h" +#include #include -#include #include extern CWallet* pwalletMain; @@ -24,7 +23,7 @@ GetResults(CWalletDB& walletdb, std::map& 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; }