Remove unused forward declaration.
This commit is contained in:
parent
f99f2e4b3f
commit
8f1d58f16f
|
@ -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();
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue