From 0b7b35a68f231e1374873c8440bab220c843a5c9 Mon Sep 17 00:00:00 2001 From: muxator Date: Thu, 12 Oct 2023 21:28:25 +0200 Subject: [PATCH] tests: blindly port in src/wallet/test/wallet_tests.cpp the ITCOIN_SPECIFIC modifications that were in src/wallet/test/availablecoins_tests.cpp src/wallet/test/availablecoins_tests.cpp was present in v24.1, but was removed in v25.1, and its content integrated in wallet_tests.cpp. Let's bring there our ITCOIN_SPECIFIC modifications. We lost them when doing the textual merge at the start of this series. --- src/wallet/test/wallet_tests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wallet/test/wallet_tests.cpp b/src/wallet/test/wallet_tests.cpp index 81baf4dc754ad6..e63c911b2e31d3 100644 --- a/src/wallet/test/wallet_tests.cpp +++ b/src/wallet/test/wallet_tests.cpp @@ -655,9 +655,9 @@ BOOST_FIXTURE_TEST_CASE(BasicOutputTypesTest, ListCoinsTest) std::map expected_coins_sizes; for (const auto& out_type : OUTPUT_TYPES) { expected_coins_sizes[out_type] = 0U; } - // Verify our wallet has one usable coinbase UTXO before starting - // This UTXO is a P2PK, so it should show up in the Other bucket - expected_coins_sizes[OutputType::UNKNOWN] = 1U; + // Verify our wallet has 100 (ITCOIN_SPECIFIC: it was one) usable coinbase UTXO before starting + // These UTXOs are P2PK, so they should show up in the Other bucket (ITCOIN_SPECIFIC: it was "This UTXO is a P2PK, so it"...) + expected_coins_sizes[OutputType::UNKNOWN] = 100U; // ITCOIN_SPECIFIC: it was 1. CoinsResult available_coins = WITH_LOCK(wallet->cs_wallet, return AvailableCoins(*wallet)); BOOST_CHECK_EQUAL(available_coins.Size(), expected_coins_sizes[OutputType::UNKNOWN]); BOOST_CHECK_EQUAL(available_coins.coins[OutputType::UNKNOWN].size(), expected_coins_sizes[OutputType::UNKNOWN]);