Make sure WalletRescanReserver has successfully reserved the rescan

This commit is contained in:
Jonas Schnelli
2017-12-12 13:13:58 -10:00
parent dbf8556b4d
commit bc356b4268
6 changed files with 44 additions and 21 deletions

View File

@@ -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);