From e6c4ffb95600cc1fcda78aa509c23ede692de7af Mon Sep 17 00:00:00 2001 From: Murch Date: Fri, 13 Mar 2026 14:47:07 -0700 Subject: [PATCH] bench: Fix type mismatch and cleanup some comments Co-authored-by: l0rinc --- src/bench/coin_selection.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bench/coin_selection.cpp b/src/bench/coin_selection.cpp index 9f0bf2cc104..28a8ca8efb6 100644 --- a/src/bench/coin_selection.cpp +++ b/src/bench/coin_selection.cpp @@ -88,17 +88,16 @@ static void CoinSelection(benchmark::Bench& bench) }); } -// Copied from src/wallet/test/coinselector_tests.cpp -static void add_coin(const CAmount& nValue, int nInput, std::vector& set) +static void add_coin(const CAmount& nValue, uint32_t nInput, std::vector& set) { CMutableTransaction tx; tx.vout.resize(nInput + 1); tx.vout[nInput].nValue = nValue; COutput output(COutPoint(tx.GetHash(), nInput), tx.vout.at(nInput), /*depth=*/0, /*input_bytes=*/-1, /*solvable=*/true, /*safe=*/true, /*time=*/0, /*from_me=*/true, /*fees=*/0); set.emplace_back(); - set.back().Insert(std::make_shared(output), /*ancestors=*/ 0, /*cluster_count=*/ 0); + set.back().Insert(std::make_shared(output), /*ancestors=*/0, /*cluster_count=*/0); } -// Copied from src/wallet/test/coinselector_tests.cpp + static CAmount make_hard_case(int utxos, std::vector& utxo_pool) { utxo_pool.clear();