Skip to content

Commit 49dc3a0

Browse files
committed
Make unit tests succeed with -DDEBUG_LOCKORDER
1 parent a65edb1 commit 49dc3a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/miner_tests.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
5757
CScript script;
5858
uint256 hash;
5959

60+
LOCK(cs_main);
61+
6062
// Simple block creation, nothing special yet:
6163
BOOST_CHECK(pblocktemplate = CreateNewBlockWithKey(reservekey));
6264

0 commit comments

Comments
 (0)