fuzz: Reset dirty connman state in process_message(s) targets

This commit is contained in:
MarcoFalke
2025-06-27 17:35:32 +02:00
parent fa11eea405
commit aeeeeec9f7
4 changed files with 16 additions and 0 deletions

View File

@@ -71,6 +71,15 @@ void ConnmanTestMsg::Handshake(CNode& node,
}
}
void ConnmanTestMsg::ResetAddrCache() { m_addr_response_caches = {}; }
void ConnmanTestMsg::ResetMaxOutboundCycle()
{
LOCK(m_total_bytes_sent_mutex);
nMaxOutboundCycleStartTime = 0s;
nMaxOutboundTotalBytesSentInCycle = 0;
}
void ConnmanTestMsg::NodeReceiveMsgBytes(CNode& node, std::span<const uint8_t> msg_bytes, bool& complete) const
{
assert(node.ReceiveMsgBytes(msg_bytes, complete));