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

@@ -50,6 +50,8 @@ FUZZ_TARGET(process_messages, .init = initialize_process_messages)
FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
auto& connman = static_cast<ConnmanTestMsg&>(*g_setup->m_node.connman);
connman.ResetAddrCache();
connman.ResetMaxOutboundCycle();
auto& chainman = static_cast<TestChainstateManager&>(*g_setup->m_node.chainman);
SetMockTime(1610000000); // any time to successfully reset ibd
chainman.ResetIbd();