diff options
author | Amiti Uttarwar <amiti@uttarwar.org> | 2021-07-22 17:00:36 -0700 |
---|---|---|
committer | Amiti Uttarwar <amiti@uttarwar.org> | 2021-08-15 22:35:13 -0700 |
commit | 60e0cbdd574bb9109bcad1e0c27c7936a534a0e7 (patch) | |
tree | b3c49dced04e42234b507682e033706b99d12232 /src/test/fuzz/addrman.cpp | |
parent | 3facf0a8ae99a03f5e2fb709b8d86c47328d363c (diff) | |
download | bitcoin-60e0cbdd574bb9109bcad1e0c27c7936a534a0e7.tar.xz |
[addrman] Merge the two Add() functions
Merge the two definitions of this overloaded function to reduce code
duplication.
Diffstat (limited to 'src/test/fuzz/addrman.cpp')
-rw-r--r-- | src/test/fuzz/addrman.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/test/fuzz/addrman.cpp b/src/test/fuzz/addrman.cpp index 60fba5730a..bc41180a8f 100644 --- a/src/test/fuzz/addrman.cpp +++ b/src/test/fuzz/addrman.cpp @@ -253,13 +253,6 @@ FUZZ_TARGET_INIT(addrman, initialize_addrman) (void)addr_man.SelectTriedCollision(); }, [&] { - const std::optional<CAddress> opt_address = ConsumeDeserializable<CAddress>(fuzzed_data_provider); - const std::optional<CNetAddr> opt_net_addr = ConsumeDeserializable<CNetAddr>(fuzzed_data_provider); - if (opt_address && opt_net_addr) { - addr_man.Add(*opt_address, *opt_net_addr, fuzzed_data_provider.ConsumeIntegralInRange<int64_t>(0, 100000000)); - } - }, - [&] { std::vector<CAddress> addresses; while (fuzzed_data_provider.ConsumeBool()) { const std::optional<CAddress> opt_address = ConsumeDeserializable<CAddress>(fuzzed_data_provider); |