diff options
| author | Gavin Andresen <[email protected]> | 2013-12-02 13:11:21 +1000 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-12-02 13:11:21 +1000 |
| commit | 49dc3a0f1aed095d9d42d574dfe585cb15b8fa8d (patch) | |
| tree | 964fff388fb410c66d14d9ce308ce1906c1aca07 /src/test/miner_tests.cpp | |
| parent | Merge pull request #3329 from gavinandresen/syncdebug (diff) | |
| download | discoin-49dc3a0f1aed095d9d42d574dfe585cb15b8fa8d.tar.xz discoin-49dc3a0f1aed095d9d42d574dfe585cb15b8fa8d.zip | |
Make unit tests succeed with -DDEBUG_LOCKORDER
Diffstat (limited to 'src/test/miner_tests.cpp')
| -rw-r--r-- | src/test/miner_tests.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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)); |