Fix some bugs? Add getimports RPC.

This commit is contained in:
blackjok3r
2019-01-02 23:04:26 +08:00
parent 9a849703c0
commit 91b6694c71
5 changed files with 115 additions and 5 deletions

View File

@@ -859,7 +859,7 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue,
static bool IsKeyType(string strType)
{
return (strType== "key" || strType == "wkey" ||
return (strType == "key" || strType == "wkey" ||
strType == "hdseed" || strType == "chdseed" ||
strType == "zkey" || strType == "czkey" ||
strType == "sapzkey" || strType == "csapzkey" ||
@@ -922,9 +922,7 @@ DBErrors CWalletDB::LoadWallet(CWallet* pwallet)
{
// Rescan if there is a bad transaction record..
//SoftSetBoolArg("-rescan", true);
uint256 hash;
ssKey >> hash;
fprintf(stderr, "TX corrupted hash: %s\n", hash.ToString().c_str());
fprintf(stderr, "TX corrupted.. aborted rescan!\n");
}
}
}