We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 117b387 commit f138566Copy full SHA for f138566
src/wallet/wallet.cpp
@@ -1689,6 +1689,11 @@ CWallet::ScanResult CWallet::ScanForWalletTransactions(const uint256& start_bloc
1689
if (max_height && block_height >= *max_height) {
1690
break;
1691
}
1692
+ if (block_height >= WITH_LOCK(cs_wallet, return GetLastBlockHeight())) {
1693
+ WalletLogPrintf("Stopping scan. At block %d. Progress=%f\n", block_height, progress_current);
1694
+ break;
1695
+ }
1696
+
1697
{
1698
if (!next_block) {
1699
// break successfully when rescan has reached the tip, or
0 commit comments