aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/process_message.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_message.cpp
parent6666c828e072a5e99ea0c16394ca3e5b9de07409 (diff)
fuzz: Stop nodes in process_message* fuzzers
Diffstat (limited to 'src/test/fuzz/process_message.cpp')
-rw-r--r--src/test/fuzz/process_message.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/fuzz/process_message.cpp b/src/test/fuzz/process_message.cpp
index 38c0748c71..eae62c7329 100644
--- a/src/test/fuzz/process_message.cpp
+++ b/src/test/fuzz/process_message.cpp
@@ -81,4 +81,6 @@ void test_one_input(const std::vector<uint8_t>& buffer)
} catch (const std::ios_base::failure&) {
}
SyncWithValidationInterfaceQueue();
+ LOCK2(::cs_main, g_cs_orphans); // See init.cpp for rationale for implicit locking order requirement
+ g_setup->m_node.connman->StopNodes();
}