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

@@ -96,8 +96,8 @@ libzcash::PaymentAddress CWallet::GenerateNewZKey()
int64_t nCreationTime = GetTime();
mapSproutZKeyMetadata[addr] = CKeyMetadata(nCreationTime);
if (!AddZKey(k))
throw std::runtime_error("CWallet::GenerateNewZKey(): AddZKey failed");
if (!AddSproutZKey(k))
throw std::runtime_error("CWallet::GenerateNewZKey(): AddSproutZKey failed");
return addr;
}
@@ -169,7 +169,7 @@ bool CWallet::AddSaplingZKey(
// Add spending key to keystore and persist to disk
bool CWallet::AddZKey(const libzcash::SproutSpendingKey &key)
bool CWallet::AddSproutZKey(const libzcash::SproutSpendingKey &key)
{
AssertLockHeld(cs_wallet); // mapSproutZKeyMetadata
auto addr = key.address();