diff --git a/src/test/fuzz/addrman.cpp b/src/test/fuzz/addrman.cpp index ce871642f4..cf91434f8e 100644 --- a/src/test/fuzz/addrman.cpp +++ b/src/test/fuzz/addrman.cpp @@ -118,7 +118,7 @@ FUZZ_TARGET_INIT(addrman, initialize_addrman) [&] { const std::optional opt_service = ConsumeDeserializable(fuzzed_data_provider); if (opt_service) { - addr_man.SetServices(*opt_service, ServiceFlags{fuzzed_data_provider.ConsumeIntegral()}); + addr_man.SetServices(*opt_service, ConsumeWeakEnum(fuzzed_data_provider, ALL_SERVICE_FLAGS)); } }); }