Merge pull request #57 from DenioD/duke

fix missing error message for z_importwallet
This commit is contained in:
Duke Leto
2019-12-22 12:56:02 -08:00
committed by GitHub

View File

@@ -495,11 +495,15 @@ UniValue importwallet_impl(const UniValue& params, bool fHelp, bool fImportZKeys
pwalletMain->nTimeFirstKey = nTimeBegin;
pwalletMain->ScanForWalletTransactions(pindex);
pwalletMain->MarkDirty();
return NullUniValue; }
else{
if (!fGood)
throw JSONRPCError(RPC_WALLET_ERROR, "Error adding some keys to wallet");
return NullUniValue; }
else{
LogPrintf("Importwallet without Rescan successfull\n");
return NullUniValue;}
return NullUniValue;}
}