diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-05-04 20:16:22 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-05-12 07:28:12 -0400 |
commit | fab860aed4878b831dae463e1ee68029b66210f5 (patch) | |
tree | fb9294cbf92cb1945da56a149935015dc2bd2675 /src/test/fuzz/process_messages.cpp | |
parent | 6666c828e072a5e99ea0c16394ca3e5b9de07409 (diff) |
fuzz: Stop nodes in process_message* fuzzers
Diffstat (limited to 'src/test/fuzz/process_messages.cpp')
-rw-r--r-- | src/test/fuzz/process_messages.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/fuzz/process_messages.cpp b/src/test/fuzz/process_messages.cpp index bcbf65bdca..ad6c115a49 100644 --- a/src/test/fuzz/process_messages.cpp +++ b/src/test/fuzz/process_messages.cpp @@ -75,6 +75,7 @@ void test_one_input(const std::vector<uint8_t>& buffer) } catch (const std::ios_base::failure&) { } } - connman.ClearTestNodes(); SyncWithValidationInterfaceQueue(); + LOCK2(::cs_main, g_cs_orphans); // See init.cpp for rationale for implicit locking order requirement + g_setup->m_node.connman->StopNodes(); } |