From d033acb608391f3ba95864cdaa7025cc00888ea2 Mon Sep 17 00:00:00 2001 From: Greg Sanders Date: Wed, 13 Nov 2024 11:36:08 -0500 Subject: [PATCH] fuzz: package_eval: let fuzzer run out input in main tx creation loop --- src/test/fuzz/package_eval.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/fuzz/package_eval.cpp b/src/test/fuzz/package_eval.cpp index 0174852f56350..0373d2493fa5f 100644 --- a/src/test/fuzz/package_eval.cpp +++ b/src/test/fuzz/package_eval.cpp @@ -210,7 +210,7 @@ FUZZ_TARGET(ephemeral_package_eval, .init = initialize_tx_pool) chainstate.SetMempool(&tx_pool); - LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 300) + LIMITED_WHILE(fuzzed_data_provider.remaining_bytes() > 0, 300) { Assert(!mempool_outpoints.empty()); @@ -364,7 +364,7 @@ FUZZ_TARGET(tx_package_eval, .init = initialize_tx_pool) chainstate.SetMempool(&tx_pool); - LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 300) + LIMITED_WHILE(fuzzed_data_provider.remaining_bytes() > 0, 300) { Assert(!mempool_outpoints.empty());