mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-21 15:50:07 +01:00
fuzz: Reset dirty connman state in process_message(s) targets
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user