Make unit tests succeed with -DDEBUG_LOCKORDER

This commit is contained in:
Gavin Andresen 2013-12-02 13:11:21 +10:00
parent a65edb104d
commit 49dc3a0f1a
1 changed files with 2 additions and 0 deletions

View File

@ -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));