[net] remove CConnman::AddNewAddresses

It just forwards calls to CAddrMan::Add.
This commit is contained in:
John Newbery
2020-10-23 10:24:16 +01:00
parent bcd7f30b79
commit 7c4cc67c0c
5 changed files with 4 additions and 18 deletions

View File

@@ -43,14 +43,6 @@ FUZZ_TARGET_INIT(connman, initialize_connman)
[&] {
random_string = fuzzed_data_provider.ConsumeRandomLengthString(64);
},
[&] {
std::vector<CAddress> addresses;
while (fuzzed_data_provider.ConsumeBool()) {
addresses.push_back(ConsumeAddress(fuzzed_data_provider));
}
// Limit nTimePenalty to int32_t to avoid signed integer overflow
(void)connman.AddNewAddresses(addresses, ConsumeAddress(fuzzed_data_provider), fuzzed_data_provider.ConsumeIntegral<int32_t>());
},
[&] {
connman.AddNode(random_string);
},