aboutsummaryrefslogtreecommitdiff
path: root/src/qt/test/wallettests.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-04-19 13:19:20 -0400
committerMarcoFalke <falke.marco@gmail.com>2019-05-13 14:46:01 -0400
commitfa3c6511435149782545ac0d09d4722dc115d709 (patch)
tree4b50c659cd37aa21590050479c8e525ad017d9e1 /src/qt/test/wallettests.cpp
parent14959753a424f04be118630f691ecab9b0df7e9e (diff)
[refactor] interfaces: Add missing LockAnnotation for cs_main
Diffstat (limited to 'src/qt/test/wallettests.cpp')
-rw-r--r--src/qt/test/wallettests.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/test/wallettests.cpp b/src/qt/test/wallettests.cpp
index 71867a59d8..21209d4994 100644
--- a/src/qt/test/wallettests.cpp
+++ b/src/qt/test/wallettests.cpp
@@ -145,6 +145,8 @@ void TestGUI()
}
{
auto locked_chain = wallet->chain().lock();
+ LockAnnotation lock(::cs_main);
+
WalletRescanReserver reserver(wallet.get());
reserver.reserve();
CWallet::ScanResult result = wallet->ScanForWalletTransactions(locked_chain->getBlockHash(0), {} /* stop_block */, reserver, true /* fUpdate */);