aboutsummaryrefslogtreecommitdiff
path: root/src/test/transaction_tests.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-04-23 08:05:05 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-04-23 08:05:05 +0200
commited671005654136b728768a423c8ac7f4e1ce637f (patch)
treede1cd7fa944c49a2baaf2805f18776de2a181892 /src/test/transaction_tests.cpp
parentbbe53f61db73237b8334207d696d99a4cf16a760 (diff)
Add required locks in tests
Unit tests with DEBUG_LOCKORDER were running into assertions.
Diffstat (limited to 'src/test/transaction_tests.cpp')
-rw-r--r--src/test/transaction_tests.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/transaction_tests.cpp b/src/test/transaction_tests.cpp
index 2ebb652f00..24647950c4 100644
--- a/src/test/transaction_tests.cpp
+++ b/src/test/transaction_tests.cpp
@@ -254,6 +254,7 @@ BOOST_AUTO_TEST_CASE(test_Get)
BOOST_AUTO_TEST_CASE(test_IsStandard)
{
+ LOCK(cs_main);
CBasicKeyStore keystore;
CCoinsView coinsDummy;
CCoinsViewCache coins(coinsDummy);