aboutsummaryrefslogtreecommitdiff
path: root/src/bench
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2022-03-22 13:54:08 +0000
committerfanquake <fanquake@gmail.com>2022-03-25 21:27:39 +0000
commit6fc00f7331f2f926167de107a30b31e895fa26f5 (patch)
tree566f67980414327b2c0d0c57722867521d77622d /src/bench
parent2f0f056e08cd5a1435120592a9ecd212fcdb915b (diff)
bench: fix incorrect named args in coin_selection bench
Diffstat (limited to 'src/bench')
-rw-r--r--src/bench/coin_selection.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/bench/coin_selection.cpp b/src/bench/coin_selection.cpp
index 18a780646f..de8ab9807c 100644
--- a/src/bench/coin_selection.cpp
+++ b/src/bench/coin_selection.cpp
@@ -58,21 +58,21 @@ static void CoinSelection(benchmark::Bench& bench)
// Create coins
std::vector<COutput> coins;
for (const auto& wtx : wtxs) {
- 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);
+ 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);
}
const CoinEligibilityFilter filter_standard(1, 6, 0);
FastRandomContext rand{};
const CoinSelectionParams coin_selection_params{
rand,
- /* change_output_size= */ 34,
- /* change_spend_size= */ 148,
+ /*change_output_size=*/ 34,
+ /*change_spend_size=*/ 148,
/*min_change_target=*/ CHANGE_LOWER,
- /* effective_feerate= */ CFeeRate(0),
- /* long_term_feerate= */ CFeeRate(0),
- /* discard_feerate= */ CFeeRate(0),
- /* tx_noinputs_size= */ 0,
- /* avoid_partial= */ false,
+ /*effective_feerate=*/ CFeeRate(0),
+ /*long_term_feerate=*/ CFeeRate(0),
+ /*discard_feerate=*/ CFeeRate(0),
+ /*tx_noinputs_size=*/ 0,
+ /*avoid_partial=*/ false,
};
bench.run([&] {
auto result = AttemptSelection(wallet, 1003 * COIN, filter_standard, coins, coin_selection_params);