aboutsummaryrefslogtreecommitdiff
path: root/src/test/accounting_tests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/accounting_tests.cpp')
-rw-r--r--src/test/accounting_tests.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/accounting_tests.cpp b/src/test/accounting_tests.cpp
index 5f79436e48..bfdb95927b 100644
--- a/src/test/accounting_tests.cpp
+++ b/src/test/accounting_tests.cpp
@@ -34,6 +34,8 @@ BOOST_AUTO_TEST_CASE(acc_orderupgrade)
CAccountingEntry ae;
std::map<int64_t, CAccountingEntry> results;
+ LOCK(pwalletMain->cs_wallet);
+
ae.strAccount = "";
ae.nCreditDebit = 1;
ae.nTime = 1333333333;