mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-25 06:55:32 +01:00
refactor coin selection for parameterizable change target
no behavior changes, since the target is always MIN_CHANGE
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user