mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
fuzz: coinselection: cover SetBumpFeeDiscount
This commit is contained in:
parent
8046759305
commit
0ff66b1c4a
1 changed files with 2 additions and 0 deletions
|
@ -282,6 +282,7 @@ void FuzzCoinSelectionAlgorithm(std::span<const uint8_t> buffer) {
|
|||
assert(result_srd->GetSelectedValue() >= target);
|
||||
assert(result_srd->GetChange(CHANGE_LOWER, coin_params.m_change_fee) > 0);
|
||||
assert(result_srd->GetWeight() <= max_selection_weight);
|
||||
result_srd->SetBumpFeeDiscount(ConsumeMoney(fuzzed_data_provider));
|
||||
result_srd->RecalculateWaste(coin_params.min_viable_change, coin_params.m_cost_of_change, coin_params.m_change_fee);
|
||||
(void)result_srd->GetShuffledInputVector();
|
||||
(void)result_srd->GetInputSet();
|
||||
|
@ -308,6 +309,7 @@ void FuzzCoinSelectionAlgorithm(std::span<const uint8_t> buffer) {
|
|||
result = *result_knapsack;
|
||||
assert(result_knapsack->GetSelectedValue() >= target);
|
||||
assert(result_knapsack->GetWeight() <= max_selection_weight);
|
||||
result_knapsack->SetBumpFeeDiscount(ConsumeMoney(fuzzed_data_provider));
|
||||
result_knapsack->RecalculateWaste(coin_params.min_viable_change, coin_params.m_cost_of_change, coin_params.m_change_fee);
|
||||
(void)result_knapsack->GetShuffledInputVector();
|
||||
(void)result_knapsack->GetInputSet();
|
||||
|
|
Loading…
Add table
Reference in a new issue