diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-04-03 13:50:44 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-04-03 13:50:59 +0200 |
commit | fecda6853d9bbc3b6df13e48cb0283e7c8ab7d52 (patch) | |
tree | e6bb8244908ee4450204db7a29a23b33243462e3 /src | |
parent | 952bf9738e9d0cfe1df45b36eb7a735ea1a91998 (diff) | |
parent | 4c35366bdc63c5fbb46be0ce062fe61a33b9a1cc (diff) |
Merge pull request #3929
4c35366 Fix importwallet nTimeFirstKey (Cozz Lovan)
Diffstat (limited to 'src')
-rw-r--r-- | src/rpcdump.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rpcdump.cpp b/src/rpcdump.cpp index 41f2a57eca..9a24a99c17 100644 --- a/src/rpcdump.cpp +++ b/src/rpcdump.cpp @@ -212,6 +212,9 @@ Value importwallet(const Array& params, bool fHelp) while (pindex && pindex->pprev && pindex->nTime > nTimeBegin - 7200) pindex = pindex->pprev; + if (!pwalletMain->nTimeFirstKey || nTimeBegin < pwalletMain->nTimeFirstKey) + pwalletMain->nTimeFirstKey = nTimeBegin; + LogPrintf("Rescanning last %i blocks\n", chainActive.Height() - pindex->nHeight + 1); pwalletMain->ScanForWalletTransactions(pindex); pwalletMain->MarkDirty(); |