diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2023-12-04 11:36:20 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2023-12-11 23:40:21 -0300 |
commit | 576bee88fd36e207b7288077626947a1fce0fc33 (patch) | |
tree | b6a2e67cfa040e5745e8e84ab9db53b1956b96df | |
parent | 05e5ff194c7722b4ebc2b9309fc0bf47b3cf1df7 (diff) |
fuzz: disable BnB when SFFO is enabled
-rw-r--r-- | src/wallet/test/fuzz/coinselection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/test/fuzz/coinselection.cpp b/src/wallet/test/fuzz/coinselection.cpp index 4caf96b18d..ade3ec3f60 100644 --- a/src/wallet/test/fuzz/coinselection.cpp +++ b/src/wallet/test/fuzz/coinselection.cpp @@ -116,7 +116,8 @@ FUZZ_TARGET(coinselection) } // Run coinselection algorithms - auto result_bnb = SelectCoinsBnB(group_pos, target, coin_params.m_cost_of_change, MAX_STANDARD_TX_WEIGHT); + auto result_bnb = coin_params.m_subtract_fee_outputs ? util::Error{Untranslated("BnB disabled when SFFO is enabled")} : + 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); |