[issue-4] added messages during rescan

This commit is contained in:
spakler
2015-09-28 10:55:17 +02:00
parent d044262ca4
commit e3224da987

View File

@@ -67,8 +67,11 @@ Value importprivkey(const Array& params, bool fHelp)
throw JSONRPCError(RPC_WALLET_ERROR, "Error adding key to wallet");
if (fRescan) {
printf("Start scanning for wallet transactions, please wait, this may take a while.\n");
pwalletMain->ScanForWalletTransactions(pindexGenesisBlock, true);
printf("Reaccepting wallet transactions.\n");
pwalletMain->ReacceptWalletTransactions();
printf("Rescan done.\n");
}
}