Rename AddZKey to include sprout

This commit is contained in:
Eirik Ogilvie-Wigley
2018-09-12 05:02:09 -06:00
parent 5e360fb29f
commit a0783bb957
4 changed files with 8 additions and 8 deletions

View File

@@ -308,7 +308,7 @@ UniValue importwallet_impl(const UniValue& params, bool fHelp, bool fImportZKeys
}
int64_t nTime = DecodeDumpTime(vstr[1]);
LogPrint("zrpc", "Importing zaddr %s...\n", EncodePaymentAddress(addr));
if (!pwalletMain->AddZKey(key)) {
if (!pwalletMain->AddSproutZKey(key)) {
// Something went wrong
fGood = false;
continue;
@@ -580,7 +580,7 @@ public:
} else {
m_wallet->MarkDirty();
if (!m_wallet-> AddZKey(sk)) {
if (!m_wallet-> AddSproutZKey(sk)) {
throw JSONRPCError(RPC_WALLET_ERROR, "Error adding spending key to wallet");
}