diff options
Diffstat (limited to 'init.cpp')
-rw-r--r-- | init.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -330,6 +330,13 @@ bool AppInit2(int argc, char* argv[]) strErrors += _("Error loading wallet.dat \n"); printf(" wallet %15"PRI64d"ms\n", GetTimeMillis() - nStart); + if (GetBoolArg("-rescan")) + { + nStart = GetTimeMillis(); + ScanForWalletTransactions(pindexGenesisBlock); + printf(" rescan %15"PRI64d"ms\n", GetTimeMillis() - nStart); + } + printf("Done loading\n"); //// debug print |