mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 11:13:23 -03:00
print -rescan timing info in debug.log
This commit is contained in:
parent
d9574c2f14
commit
f1307515b7
1 changed files with 7 additions and 3 deletions
10
init.cpp
10
init.cpp
|
@ -330,6 +330,13 @@ bool AppInit2(int argc, char* argv[])
|
||||||
strErrors += _("Error loading wallet.dat \n");
|
strErrors += _("Error loading wallet.dat \n");
|
||||||
printf(" wallet %15"PRI64d"ms\n", GetTimeMillis() - nStart);
|
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");
|
printf("Done loading\n");
|
||||||
|
|
||||||
//// debug print
|
//// debug print
|
||||||
|
@ -346,9 +353,6 @@ bool AppInit2(int argc, char* argv[])
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GetBoolArg("-rescan"))
|
|
||||||
ScanForWalletTransactions(pindexGenesisBlock);
|
|
||||||
|
|
||||||
// Add wallet transactions that aren't already in a block to mapTransactions
|
// Add wallet transactions that aren't already in a block to mapTransactions
|
||||||
ReacceptWalletTransactions();
|
ReacceptWalletTransactions();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue