diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 7d475dcca..81f7fd33d 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -144,14 +144,14 @@ std::optional CWallet::GenerateNewLegacySaplingZKey() { } else { // Update the persisted chain information if (fFileBacked && !CWalletDB(strWalletFile).WriteLegacyHDChain(hdChain)) { - throw std::runtime_error("CWallet::GenerateNewSaplingZKey(): Writing HD chain model failed"); + throw std::runtime_error("CWallet::GenerateNewLegacySaplingZKey(): Writing HD chain model failed"); } auto ivk = xsk.first.expsk.full_viewing_key().in_viewing_key(); mapSaplingZKeyMetadata[ivk] = xsk.second; if (!AddSaplingZKey(xsk.first)) { - throw std::runtime_error("CWallet::GenerateNewSaplingZKey(): AddSaplingZKey failed"); + throw std::runtime_error("CWallet::GenerateNewLegacySaplingZKey(): AddSaplingZKey failed"); } return xsk.first.ToXFVK().DefaultAddress(); diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index f173dfd92..6948325dc 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -1058,15 +1058,6 @@ public: * Sapling ZKeys */ - //! Generates new Sapling key given the specified HD seed and account id - //! and persists it to the wallet. - // - //! Returns the newly generated extended spending key, or `std::nullopt` - //! if a key corresponding to the specified account id already exists in - //! the wallet. - std::optional GenerateNewSaplingZKey( - const HDSeed& seed, - uint32_t accountId); //! Generates new Sapling key using the legacy HD seed (if one is available) //! and legacy account counter, stores the newly generated spending key to //! the wallet, and returns the default address for the newly generated key.