mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-05-17 23:56:39 +00:00
fuzz: coinselection, BnB should never produce change
This commit is contained in:
parent
b2eb558407
commit
6d9b26d56a
@ -115,6 +115,7 @@ FUZZ_TARGET(coinselection)
|
||||
// Run coinselection algorithms
|
||||
auto result_bnb = SelectCoinsBnB(group_pos, target, coin_params.m_cost_of_change, MAX_STANDARD_TX_WEIGHT);
|
||||
if (result_bnb) {
|
||||
assert(result_bnb->GetChange(coin_params.m_cost_of_change, CAmount{0}) == 0);
|
||||
assert(result_bnb->GetSelectedValue() >= target);
|
||||
(void)result_bnb->GetShuffledInputVector();
|
||||
(void)result_bnb->GetInputSet();
|
||||
|
Loading…
x
Reference in New Issue
Block a user