diff options
author | Andrew Chow <achow101-github@achow101.com> | 2019-10-07 14:11:34 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2019-11-01 22:58:05 -0400 |
commit | 46865ec958b6b9bde04a827de598975f14bdb5e7 (patch) | |
tree | 820071f22facdbed71b278f78b22a4e4543ba176 /src/wallet/scriptpubkeyman.h | |
parent | a18edd7b383d667b15b6d4b87aa3a055a9fa5051 (diff) | |
download | bitcoin-46865ec958b6b9bde04a827de598975f14bdb5e7.tar.xz |
Refactor: Move MarkUnusedAddresses code out of CWallet::AddToWalletIfInvolvingMe
This commit does not change behavior.
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); |