diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-03-11 09:17:44 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-03-11 09:18:16 +0100 |
| commit | 1264b3647d48c61b033f5e3d20ffbb84ed77c369 (patch) | |
| tree | 9b53668b9c5b179f0611b7d778e44041460021a2 /src/wallet.cpp | |
| parent | Merge pull request #3717 from djpnewton/wallet-txcount (diff) | |
| parent | Add progress to initial display of latest block downloaded. (diff) | |
| download | discoin-1264b3647d48c61b033f5e3d20ffbb84ed77c369.tar.xz discoin-1264b3647d48c61b033f5e3d20ffbb84ed77c369.zip | |
Merge pull request #3696
c4656e0 Add progress to initial display of latest block downloaded. (R E Broadley)
75b8953 Display progress of rescan. (R E Broadley)
Diffstat (limited to 'src/wallet.cpp')
| -rw-r--r-- | src/wallet.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp index 3ecd994e9..4f7b96e7f 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 <boost/algorithm/string/replace.hpp> #include <openssl/rand.h> @@ -830,6 +831,7 @@ bool CWalletTx::WriteToDisk() int CWallet::ScanForWalletTransactions(CBlockIndex* pindexStart, bool fUpdate) { int ret = 0; + int64_t nNow = GetTime(); CBlockIndex* pindex = pindexStart; { @@ -851,6 +853,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; |