aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorR E Broadley <rebroad+github@gmail.com>2014-02-17 16:35:37 -0800
committerR E Broadley <rebroad+github@gmail.com>2014-02-19 18:23:12 -0800
commit75b8953a2cb98651f546a457927fef0693dfb349 (patch)
tree2b3c981b55dc2cafa75cef9aaff1989ecbe2b268 /src/wallet.cpp
parentb8d9058a4d1ce28eefa65aa3339bcc52b3c014e9 (diff)
downloadbitcoin-75b8953a2cb98651f546a457927fef0693dfb349.tar.xz
Display progress of rescan.
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r--src/wallet.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 823c96949f..cd48571a9e 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -8,6 +8,7 @@
#include "base58.h"
#include "coincontrol.h"
#include "net.h"
+#include "checkpoints.h"
#include <inttypes.h>
@@ -890,6 +891,7 @@ bool CWalletTx::WriteToDisk()
int CWallet::ScanForWalletTransactions(CBlockIndex* pindexStart, bool fUpdate)
{
int ret = 0;
+ int64_t nNow = GetTime();
CBlockIndex* pindex = pindexStart;
{
@@ -911,6 +913,10 @@ int CWallet::ScanForWalletTransactions(CBlockIndex* pindexStart, bool fUpdate)
ret++;
}
pindex = chainActive.Next(pindex);
+ if (GetTime() >= nNow + 60) {
+ nNow = GetTime();
+ LogPrintf("Still rescanning. At block %d. Progress=%f\n", pindex->nHeight, Checkpoints::GuessVerificationProgress(pindex));
+ }
}
}
return ret;