diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-06-14 09:40:51 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-07-21 16:01:46 +0200 |
commit | fab755b77f88873f01cbd988051de7ad3f0150de (patch) | |
tree | 629a4e3be33be5ad52384314276baa83a4908969 /src | |
parent | fae0c79351ce34186249d44af0c5c9c7521f4b6c (diff) |
fuzz: Actually use const addrman
Diffstat (limited to 'src')
-rw-r--r-- | src/test/fuzz/addrman.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/fuzz/addrman.cpp b/src/test/fuzz/addrman.cpp index 8513f1e6df..ee9485eba5 100644 --- a/src/test/fuzz/addrman.cpp +++ b/src/test/fuzz/addrman.cpp @@ -103,11 +103,11 @@ FUZZ_TARGET_INIT(addrman, initialize_addrman) }); } const CAddrMan& const_addr_man{addr_man}; - (void)/*const_*/addr_man.GetAddr( + (void)const_addr_man.GetAddr( /* max_addresses */ fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, 4096), /* max_pct */ fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, 4096), /* network */ std::nullopt); - (void)/*const_*/addr_man.Select(fuzzed_data_provider.ConsumeBool()); + (void)const_addr_man.Select(fuzzed_data_provider.ConsumeBool()); (void)const_addr_man.size(); CDataStream data_stream(SER_NETWORK, PROTOCOL_VERSION); data_stream << const_addr_man; |