diff --git a/src/test/fuzz/addrman.cpp b/src/test/fuzz/addrman.cpp index dbec2bc858e059..32541d194ca955 100644 --- a/src/test/fuzz/addrman.cpp +++ b/src/test/fuzz/addrman.cpp @@ -236,7 +236,7 @@ FUZZ_TARGET(addrman, .init = initialize_addrman) } } AddrManDeterministic& addr_man = *addr_man_ptr; - LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 10000) { + LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 100) { CallOneOf( fuzzed_data_provider, [&] { @@ -247,7 +247,8 @@ FUZZ_TARGET(addrman, .init = initialize_addrman) }, [&] { std::vector addresses; - LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 10000) { + // Maximum number of addresses permitted in an ADDR message. + LIMITED_WHILE(fuzzed_data_provider.ConsumeBool(), 1000) { addresses.push_back(ConsumeAddress(fuzzed_data_provider)); } addr_man.Add(addresses, ConsumeNetAddr(fuzzed_data_provider), std::chrono::seconds{ConsumeTime(fuzzed_data_provider, 0, 100000000)});