We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88b1229 commit 9dae3b9Copy full SHA for 9dae3b9
src/wallet/test/fuzz/coinselection.cpp
@@ -158,7 +158,7 @@ FUZZ_TARGET(coin_grinder_is_optimal)
158
// Only make UTXOs with positive effective value
159
const CAmount input_fee = coin_params.m_effective_feerate.GetFee(n_input_bytes);
160
// Ensure that each UTXO has at least an effective value of 1 sat
161
- const CAmount eff_value{fuzzed_data_provider.ConsumeIntegralInRange<CAmount>(1, MAX_MONEY - max_spendable - max_output_groups + group_pos.size())};
+ const CAmount eff_value{fuzzed_data_provider.ConsumeIntegralInRange<CAmount>(1, MAX_MONEY + group_pos.size() - max_spendable - max_output_groups)};
162
const CAmount amount{eff_value + input_fee};
163
std::vector<COutput> temp_utxo_pool;
164
0 commit comments