aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-03-20 12:24:10 +0100
committerMarcoFalke <falke.marco@gmail.com>2021-03-20 12:03:12 +0100
commit55554463c15e3c75a64d26209dd3f8396e508cc2 (patch)
tree88899905cc1f5586be25cd2e911ce574f19a3a7a
parent3530d5d2d851d025b013b2ea79ed39a57cbbafcd (diff)
fuzz: Use ConsumeWeakEnum in addrman for service flags
-rw-r--r--src/test/fuzz/addrman.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/addrman.cpp b/src/test/fuzz/addrman.cpp
index b55f1c72b1..0baf30aef6 100644
--- a/src/test/fuzz/addrman.cpp
+++ b/src/test/fuzz/addrman.cpp
@@ -104,7 +104,7 @@ FUZZ_TARGET_INIT(addrman, initialize_addrman)
[&] {
const std::optional<CService> opt_service = ConsumeDeserializable<CService>(fuzzed_data_provider);
if (opt_service) {
- addr_man.SetServices(*opt_service, ServiceFlags{fuzzed_data_provider.ConsumeIntegral<uint64_t>()});
+ addr_man.SetServices(*opt_service, ConsumeWeakEnum(fuzzed_data_provider, ALL_SERVICE_FLAGS));
}
},
[&] {