Skip to content

Commit 6fc00f7

Browse files
committed
bench: fix incorrect named args in coin_selection bench
1 parent 2f0f056 commit 6fc00f7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/bench/coin_selection.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,21 @@ static void CoinSelection(benchmark::Bench& bench)
5858
// Create coins
5959
std::vector<COutput> coins;
6060
for (const auto& wtx : wtxs) {
61-
coins.emplace_back(COutPoint(wtx->GetHash(), 0), wtx->tx->vout.at(0), /*depth=*/ 6 * 24, GetTxSpendSize(wallet, *wtx, 0), /*spendable=*/ true, /*solvable=*/ true, /*safe=*/ true, wtx->GetTxTime(), /*from_me=*/ true);
61+
coins.emplace_back(COutPoint(wtx->GetHash(), 0), wtx->tx->vout.at(0), /*depth=*/6 * 24, GetTxSpendSize(wallet, *wtx, 0), /*spendable=*/true, /*solvable=*/true, /*safe=*/true, wtx->GetTxTime(), /*from_me=*/true);
6262
}
6363

6464
const CoinEligibilityFilter filter_standard(1, 6, 0);
6565
FastRandomContext rand{};
6666
const CoinSelectionParams coin_selection_params{
6767
rand,
68-
/* change_output_size= */ 34,
69-
/* change_spend_size= */ 148,
68+
/*change_output_size=*/ 34,
69+
/*change_spend_size=*/ 148,
7070
/*min_change_target=*/ CHANGE_LOWER,
71-
/* effective_feerate= */ CFeeRate(0),
72-
/* long_term_feerate= */ CFeeRate(0),
73-
/* discard_feerate= */ CFeeRate(0),
74-
/* tx_noinputs_size= */ 0,
75-
/* avoid_partial= */ false,
71+
/*effective_feerate=*/ CFeeRate(0),
72+
/*long_term_feerate=*/ CFeeRate(0),
73+
/*discard_feerate=*/ CFeeRate(0),
74+
/*tx_noinputs_size=*/ 0,
75+
/*avoid_partial=*/ false,
7676
};
7777
bench.run([&] {
7878
auto result = AttemptSelection(wallet, 1003 * COIN, filter_standard, coins, coin_selection_params);

0 commit comments

Comments
 (0)