mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-02 15:32:34 +02:00
fuzz: package_eval: let fuzzer run out input in main tx creation loop
This commit is contained in:
parent
ba35a570c5
commit
d033acb608
@ -210,7 +210,7 @@ FUZZ_TARGET(ephemeral_package_eval, .init = initialize_tx_pool)
|
|||||||
|
|
||||||
chainstate.SetMempool(&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());
|
Assert(!mempool_outpoints.empty());
|
||||||
|
|
||||||
@ -364,7 +364,7 @@ FUZZ_TARGET(tx_package_eval, .init = initialize_tx_pool)
|
|||||||
|
|
||||||
chainstate.SetMempool(&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());
|
Assert(!mempool_outpoints.empty());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user