[net processing] Move PoissonNextSendInbound to PeerManager

This commit is contained in:
John Newbery
2021-12-14 10:35:37 +00:00
committed by Martin Zumsande
parent bb060746df
commit ea99f5d01e
4 changed files with 24 additions and 26 deletions

View File

@@ -89,12 +89,6 @@ FUZZ_TARGET_INIT(connman, initialize_connman)
[&] {
(void)connman.OutboundTargetReached(fuzzed_data_provider.ConsumeBool());
},
[&] {
// Limit now to int32_t to avoid signed integer overflow
(void)connman.PoissonNextSendInbound(
std::chrono::microseconds{fuzzed_data_provider.ConsumeIntegral<int32_t>()},
std::chrono::seconds{fuzzed_data_provider.ConsumeIntegral<int>()});
},
[&] {
CSerializedNetMsg serialized_net_msg;
serialized_net_msg.m_type = fuzzed_data_provider.ConsumeRandomLengthString(CMessageHeader::COMMAND_SIZE);