Changeset View
Changeset View
Standalone View
Standalone View
src/test/fuzz/process_messages.cpp
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | while (fuzzed_data_provider.ConsumeBool()) { | ||||
(void)connman.ReceiveMsgFrom(random_node, net_msg); | (void)connman.ReceiveMsgFrom(random_node, net_msg); | ||||
random_node.fPauseSend = false; | random_node.fPauseSend = false; | ||||
try { | try { | ||||
connman.ProcessMessagesOnce(random_node); | connman.ProcessMessagesOnce(random_node); | ||||
} catch (const std::ios_base::failure &) { | } catch (const std::ios_base::failure &) { | ||||
} | } | ||||
} | } | ||||
connman.ClearTestNodes(); | |||||
SyncWithValidationInterfaceQueue(); | SyncWithValidationInterfaceQueue(); | ||||
// See init.cpp for rationale for implicit locking order requirement | |||||
LOCK2(::cs_main, g_cs_orphans); | |||||
g_setup->m_node.connman->StopNodes(); | |||||
} | } |