Merge AddSpendingKeyPaymentAddress into AddSpendingKey to simplify API

This commit is contained in:
Jack Grigg
2016-08-12 14:24:29 +12:00
parent 7c929cf5bc
commit 0bfdb9628e
2 changed files with 4 additions and 9 deletions

View File

@@ -47,8 +47,7 @@ public:
virtual bool HaveWatchOnly() const =0;
//! Add a spending key to the store.
virtual bool AddSpendingKeyPaymentAddress(const libzcash::SpendingKey &key, const libzcash::PaymentAddress &address) =0;
virtual bool AddSpendingKey(const libzcash::SpendingKey &key);
virtual bool AddSpendingKey(const libzcash::SpendingKey &sk) =0;
//! Check whether a spending key corresponding to a given payment address is present in the store.
virtual bool HaveSpendingKey(const libzcash::PaymentAddress &address) const =0;
@@ -116,7 +115,7 @@ public:
virtual bool HaveWatchOnly(const CScript &dest) const;
virtual bool HaveWatchOnly() const;
bool AddSpendingKeyPaymentAddress(const libzcash::SpendingKey &key, const libzcash::PaymentAddress &address);
bool AddSpendingKey(const libzcash::SpendingKey &sk);
bool HaveSpendingKey(const libzcash::PaymentAddress &address) const
{
bool result;