diff options
Diffstat (limited to 'src/wallet/scriptpubkeyman.h')
-rw-r--r-- | src/wallet/scriptpubkeyman.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wallet/scriptpubkeyman.h b/src/wallet/scriptpubkeyman.h index e0dcae0d5c..be55d3cb12 100644 --- a/src/wallet/scriptpubkeyman.h +++ b/src/wallet/scriptpubkeyman.h @@ -37,6 +37,8 @@ public: //! Default for -keypool static const unsigned int DEFAULT_KEYPOOL_SIZE = 1000; +std::vector<CKeyID> GetAffectedKeys(const CScript& spk, const SigningProvider& provider); + /** A key from a CWallet's keypool * * The wallet holds one (for pre HD-split wallets) or several keypools. These @@ -154,6 +156,9 @@ public: virtual bool TopUp(unsigned int size = 0) { return false; } + //! Mark unused addresses as being used + virtual void MarkUnusedAddresses(const CScript& script) {} + /* Returns true if HD is enabled */ virtual bool IsHDEnabled() const { return false; } @@ -259,6 +264,8 @@ public: bool TopUp(unsigned int size = 0) override; + void MarkUnusedAddresses(const CScript& script) override; + //! Upgrade stored CKeyMetadata objects to store key origin info as KeyOriginInfo void UpgradeKeyMetadata() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); |