Remove unused forward declaration.

This commit is contained in:
Kris Nuttycombe 2021-10-07 15:08:08 -06:00
parent f99f2e4b3f
commit 8f1d58f16f
2 changed files with 2 additions and 11 deletions

View File

@ -144,14 +144,14 @@ std::optional<SaplingPaymentAddress> 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();

View File

@ -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<libzcash::SaplingExtendedSpendingKey> 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.