Skip to content

Commit

Permalink
fuzz: package_eval: let fuzzer run out input in main tx creation loop
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs committed Nov 20, 2024
1 parent ba35a57 commit d033acb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/fuzz/package_eval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down Expand Up @@ -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());

Expand Down

0 comments on commit d033acb

Please sign in to comment.