From ec1eefda77466c61315332cb3afe3c5e4f4be9f5 Mon Sep 17 00:00:00 2001 From: Murch Date: Fri, 13 Mar 2026 14:35:40 -0700 Subject: [PATCH] bench: Remove unnecessary wallet parameter Co-authored-by: l0rinc --- src/bench/coin_selection.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bench/coin_selection.cpp b/src/bench/coin_selection.cpp index 28a8ca8efb6..82f1359e08b 100644 --- a/src/bench/coin_selection.cpp +++ b/src/bench/coin_selection.cpp @@ -29,7 +29,7 @@ #include namespace wallet { -static void addCoin(const CAmount& nValue, const CWallet& wallet, std::vector>& wtxs) +static void addCoin(const CAmount& nValue, std::vector>& wtxs) { static int nextLockTime = 0; CMutableTransaction tx; @@ -55,15 +55,15 @@ static void CoinSelection(benchmark::Bench& bench) // Add coins. for (int i = 0; i < 1000; ++i) { - addCoin(1000 * COIN, wallet, wtxs); + addCoin(1000 * COIN, wtxs); } - addCoin(3 * COIN, wallet, wtxs); + addCoin(3 * COIN, wtxs); // Create coins wallet::CoinsResult available_coins; for (const auto& wtx : wtxs) { const auto txout = wtx->tx->vout.at(0); - available_coins.coins[OutputType::BECH32].emplace_back(COutPoint(wtx->GetHash(), 0), txout, /*depth=*/6 * 24, CalculateMaximumSignedInputSize(txout, &wallet, /*coin_control=*/nullptr), /*solvable=*/true, /*safe=*/true, wtx->GetTxTime(), /*from_me=*/true, /*fees=*/ 0); + available_coins.coins[OutputType::BECH32].emplace_back(COutPoint(wtx->GetHash(), 0), txout, /*depth=*/6 * 24, /*input_bytes=*/-1, /*solvable=*/true, /*safe=*/true, wtx->GetTxTime(), /*from_me=*/true, /*fees=*/0); } const CoinEligibilityFilter filter_standard(1, 6, 0);