Skip to content

Commit 576bee8

Browse files
committed
fuzz: disable BnB when SFFO is enabled
1 parent 05e5ff1 commit 576bee8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wallet/test/fuzz/coinselection.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ FUZZ_TARGET(coinselection)
116116
}
117117

118118
// Run coinselection algorithms
119-
auto result_bnb = SelectCoinsBnB(group_pos, target, coin_params.m_cost_of_change, MAX_STANDARD_TX_WEIGHT);
119+
auto result_bnb = coin_params.m_subtract_fee_outputs ? util::Error{Untranslated("BnB disabled when SFFO is enabled")} :
120+
SelectCoinsBnB(group_pos, target, coin_params.m_cost_of_change, MAX_STANDARD_TX_WEIGHT);
120121
if (result_bnb) {
121122
assert(result_bnb->GetChange(coin_params.m_cost_of_change, CAmount{0}) == 0);
122123
assert(result_bnb->GetSelectedValue() >= target);

0 commit comments

Comments
 (0)