File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -125,8 +125,6 @@ struct CoinSelectionParams {
125
125
CAmount m_min_change_target{0 };
126
126
/* * Cost of creating the change output. */
127
127
CAmount m_change_fee{0 };
128
- /* * The pre-determined minimum value to target when funding a change output. */
129
- CAmount m_change_target{0 };
130
128
/* * Cost of creating the change output + cost of spending the change output in the future. */
131
129
CAmount m_cost_of_change{0 };
132
130
/* * The targeted feerate of the transaction being built. */
Original file line number Diff line number Diff line change @@ -794,7 +794,7 @@ static util::Result<CreatedTransactionResult> CreateTransactionInternal(
794
794
coin_selection_params.m_subtract_fee_outputs = true ;
795
795
}
796
796
}
797
- coin_selection_params.m_change_target = GenerateChangeTarget (std::floor (recipients_sum / vecSend.size ()), rng_fast);
797
+ coin_selection_params.m_min_change_target = GenerateChangeTarget (std::floor (recipients_sum / vecSend.size ()), rng_fast);
798
798
799
799
// Create change script that will be used if we need change
800
800
CScript scriptChange;
You can’t perform that action at this time.
0 commit comments