diff options
author | glozow <gloriajzhao@gmail.com> | 2022-03-07 13:45:06 +0000 |
---|---|---|
committer | glozow <gloriajzhao@gmail.com> | 2022-03-25 11:56:46 +0000 |
commit | 1e52e6bd0a8888efb4ed247d74ec7ca9dfc2e002 (patch) | |
tree | 6bfea8ddf30f453c9e41f1278d09202f87814f01 /src/bench/coin_selection.cpp | |
parent | c9b5790e8da8a88d9022dd9725a1f7bb4474cbf7 (diff) |
refactor coin selection for parameterizable change target
no behavior changes, since the target is always MIN_CHANGE
Diffstat (limited to 'src/bench/coin_selection.cpp')
-rw-r--r-- | src/bench/coin_selection.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bench/coin_selection.cpp b/src/bench/coin_selection.cpp index 16a8948f99..76f1ab3976 100644 --- a/src/bench/coin_selection.cpp +++ b/src/bench/coin_selection.cpp @@ -19,6 +19,7 @@ using wallet::CWalletTx; using wallet::CoinEligibilityFilter; using wallet::CoinSelectionParams; using wallet::CreateDummyWalletDatabase; +using wallet::MIN_CHANGE; using wallet::OutputGroup; using wallet::SelectCoinsBnB; using wallet::TxStateInactive; @@ -66,6 +67,7 @@ static void CoinSelection(benchmark::Bench& bench) rand, /* change_output_size= */ 34, /* change_spend_size= */ 148, + /*min_change_target=*/ MIN_CHANGE, /* effective_feerate= */ CFeeRate(0), /* long_term_feerate= */ CFeeRate(0), /* discard_feerate= */ CFeeRate(0), |