Skip to content

Commit eeee8f5

Browse files
author
MarcoFalke
committed
fuzz: Removed unused try-catch in coins_view
1 parent fa98f3f commit eeee8f5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/test/fuzz/coins_view.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,11 +230,8 @@ FUZZ_TARGET_INIT(coins_view, initialize_coins_view)
230230
// consensus/tx_verify.cpp:171: bool Consensus::CheckTxInputs(const CTransaction &, TxValidationState &, const CCoinsViewCache &, int, CAmount &): Assertion `!coin.IsSpent()' failed.
231231
return;
232232
}
233-
try {
234-
(void)Consensus::CheckTxInputs(transaction, state, coins_view_cache, fuzzed_data_provider.ConsumeIntegralInRange<int>(0, std::numeric_limits<int>::max()), tx_fee_out);
235-
assert(MoneyRange(tx_fee_out));
236-
} catch (const std::runtime_error&) {
237-
}
233+
(void)Consensus::CheckTxInputs(transaction, state, coins_view_cache, fuzzed_data_provider.ConsumeIntegralInRange<int>(0, std::numeric_limits<int>::max()), tx_fee_out);
234+
assert(MoneyRange(tx_fee_out));
238235
},
239236
[&] {
240237
const CTransaction transaction{random_mutable_transaction};

0 commit comments

Comments
 (0)