aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/process_messages.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-05-04 20:16:22 -0400
committerMarcoFalke <falke.marco@gmail.com>2020-05-12 07:28:12 -0400
commitfab860aed4878b831dae463e1ee68029b66210f5 (patch)
treefb9294cbf92cb1945da56a149935015dc2bd2675 /src/test/fuzz/process_messages.cpp
parent6666c828e072a5e99ea0c16394ca3e5b9de07409 (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.cpp3
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();
}