diff options
author | Andrew Chow <achow101-github@achow101.com> | 2021-02-04 18:28:45 -0500 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2021-03-16 16:32:38 -0400 |
commit | 448d04b931f86941903e855f831249ff5ec77485 (patch) | |
tree | 9c058dd072df67f64b464846835a5d32c86c93f2 /src/bench/coin_selection.cpp | |
parent | e2f429e6bbf7098f278c0247b954ecd3ba53cf37 (diff) |
wallet: Move long term feerate setting to CreateTransaction
Instead of setting the long term feerate for each SelectCoinsMinConf
iteration, set it once during CreateTransaction and let it be shared
with each SelectCoinsMinConf through
coin_selection_params.m_long_term_feerate.
Does not change behavior.
Diffstat (limited to 'src/bench/coin_selection.cpp')
-rw-r--r-- | src/bench/coin_selection.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bench/coin_selection.cpp b/src/bench/coin_selection.cpp index 3abfbfd784..0cbd4bfad4 100644 --- a/src/bench/coin_selection.cpp +++ b/src/bench/coin_selection.cpp @@ -49,7 +49,10 @@ static void CoinSelection(benchmark::Bench& bench) } const CoinEligibilityFilter filter_standard(1, 6, 0); - const CoinSelectionParams coin_selection_params(true, 34, 148, CFeeRate(0), 0, false); + const CoinSelectionParams coin_selection_params(/* use_bnb= */ true, /* change_output_size= */ 34, + /* change_spend_size= */ 148, /* effective_fee= */ CFeeRate(0), + /* long_term_feerate= */ CFeeRate(0), + /* tx_no_inputs_size= */ 0, /* avoid_partial= */ false); bench.run([&] { std::set<CInputCoin> setCoinsRet; CAmount nValueRet; |