aboutsummaryrefslogtreecommitdiff
path: root/init.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2011-01-20 14:12:10 -0500
committerGavin Andresen <gavinandresen@gmail.com>2011-01-20 14:12:10 -0500
commitf1307515b75cae1db84d73dc543edb2e001bc4ce (patch)
treeeea41d044f82a7a9311c3360501042519e3e7172 /init.cpp
parentd9574c2f14028297ad5121695a0c10e517bf638e (diff)
print -rescan timing info in debug.log
Diffstat (limited to 'init.cpp')
-rw-r--r--init.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/init.cpp b/init.cpp
index d93eaba795..f591e7a577 100644
--- a/init.cpp
+++ b/init.cpp
@@ -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
@@ -346,9 +353,6 @@ bool AppInit2(int argc, char* argv[])
return false;
}
- if (GetBoolArg("-rescan"))
- ScanForWalletTransactions(pindexGenesisBlock);
-
// Add wallet transactions that aren't already in a block to mapTransactions
ReacceptWalletTransactions();