diff options
author | fanquake <fanquake@gmail.com> | 2020-10-24 16:25:56 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-12-13 10:38:24 +0800 |
commit | b117eb148678b0fc5be02346cef29d87d4f81af9 (patch) | |
tree | fcec428ddc28414137eb84662c69630a2b611d7b /src/test/fuzz/connman.cpp | |
parent | 2f3f1aec1f8aadd4a6fb08ca5da7eeda31eb388f (diff) |
net: remove SetMaxOutboundTimeframe
This was introduced in 872fee3fccc8b33b9af0a401b5f85ac5504b57eb and it's unclear
if it's ever been used.
Diffstat (limited to 'src/test/fuzz/connman.cpp')
-rw-r--r-- | src/test/fuzz/connman.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/test/fuzz/connman.cpp b/src/test/fuzz/connman.cpp index 4afaf9def0..af85e7be4c 100644 --- a/src/test/fuzz/connman.cpp +++ b/src/test/fuzz/connman.cpp @@ -31,7 +31,7 @@ void test_one_input(const std::vector<uint8_t>& buffer) CSubNet random_subnet; std::string random_string; while (fuzzed_data_provider.ConsumeBool()) { - switch (fuzzed_data_provider.ConsumeIntegralInRange<int>(0, 29)) { + switch (fuzzed_data_provider.ConsumeIntegralInRange<int>(0, 28)) { case 0: random_address = ConsumeAddress(fuzzed_data_provider); break; @@ -127,15 +127,12 @@ void test_one_input(const std::vector<uint8_t>& buffer) connman.SetBestHeight(fuzzed_data_provider.ConsumeIntegral<int>()); break; case 26: - connman.SetMaxOutboundTimeframe(fuzzed_data_provider.ConsumeIntegral<uint64_t>()); - break; - case 27: connman.SetNetworkActive(fuzzed_data_provider.ConsumeBool()); break; - case 28: + case 27: connman.SetServices(random_service, static_cast<ServiceFlags>(fuzzed_data_provider.ConsumeIntegral<uint64_t>())); break; - case 29: + case 28: connman.SetTryNewOutboundPeer(fuzzed_data_provider.ConsumeBool()); break; } |