From 49dc3a0f1aed095d9d42d574dfe585cb15b8fa8d Mon Sep 17 00:00:00 2001 From: Gavin Andresen Date: Mon, 2 Dec 2013 13:11:21 +1000 Subject: [PATCH] Make unit tests succeed with -DDEBUG_LOCKORDER --- src/test/miner_tests.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/miner_tests.cpp b/src/test/miner_tests.cpp index 8001c4f65..46c9ae021 100644 --- a/src/test/miner_tests.cpp +++ b/src/test/miner_tests.cpp @@ -57,6 +57,8 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity) CScript script; uint256 hash; + LOCK(cs_main); + // Simple block creation, nothing special yet: BOOST_CHECK(pblocktemplate = CreateNewBlockWithKey(reservekey));