Index: init.cpp
===================================================================
--- init.cpp	(revision 224)
+++ init.cpp	(revision 225)
@@ -331,6 +331,13 @@
         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
@@ -347,9 +354,6 @@
         return false;
     }
 
-    if (GetBoolArg("-rescan"))
-        ScanForWalletTransactions(pindexGenesisBlock);
-
     // Add wallet transactions that aren't already in a block to mapTransactions
     ReacceptWalletTransactions();
 
