mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01:00
fuzz: Reset dirty connman state in process_message(s) targets
This commit is contained in:
@@ -60,6 +60,8 @@ FUZZ_TARGET(process_message, .init = initialize_process_message)
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user