aboutsummaryrefslogtreecommitdiff
path: root/src/qt/test
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2017-12-12 13:13:58 -1000
committerJonas Schnelli <dev@jonasschnelli.ch>2018-01-23 20:24:18 -1000
commitbc356b4268e222ac57d9e9297d2a986bb6e09de8 (patch)
tree994c99623c3b7aa10e367d5d3e02451da2025d38 /src/qt/test
parentdbf8556b4d6a2484ad4c03d0b4e41c1db0133997 (diff)
Make sure WalletRescanReserver has successfully reserved the rescan
Diffstat (limited to 'src/qt/test')
-rw-r--r--src/qt/test/wallettests.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/test/wallettests.cpp b/src/qt/test/wallettests.cpp
index a270e5de59..cd49292138 100644
--- a/src/qt/test/wallettests.cpp
+++ b/src/qt/test/wallettests.cpp
@@ -169,7 +169,9 @@ void TestGUI()
}
{
LOCK(cs_main);
- wallet.ScanForWalletTransactions(chainActive.Genesis(), nullptr, true);
+ WalletRescanReserver reserver(&wallet);
+ reserver.reserve();
+ wallet.ScanForWalletTransactions(chainActive.Genesis(), nullptr, reserver, true);
}
wallet.SetBroadcastTransactions(true);