mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-28 20:54:03 +02:00
fuzz: package_eval: let fuzzer run out input in main tx creation loop
This commit is contained in:
@@ -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());
|
||||
|
||||
|
Reference in New Issue
Block a user