aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/scriptpubkeyman.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2019-10-07 14:11:34 -0400
committerAndrew Chow <achow101-github@achow101.com>2019-11-01 22:58:05 -0400
commita18edd7b383d667b15b6d4b87aa3a055a9fa5051 (patch)
tree4bce57892e2f657934cb149107e8d423327ad99a /src/wallet/scriptpubkeyman.h
parent9716bbe0f8081814cbf052e8211d1c6a838e5262 (diff)
downloadbitcoin-a18edd7b383d667b15b6d4b87aa3a055a9fa5051.tar.xz
Refactor: Move GetMetadata code out of getaddressinfo
Easier to review ignoring whitespace: git log -p -n1 -w This commit does not change behavior.
Diffstat (limited to 'src/wallet/scriptpubkeyman.h')
-rw-r--r--src/wallet/scriptpubkeyman.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/scriptpubkeyman.h b/src/wallet/scriptpubkeyman.h
index dc3d3de516..e0dcae0d5c 100644
--- a/src/wallet/scriptpubkeyman.h
+++ b/src/wallet/scriptpubkeyman.h
@@ -163,6 +163,8 @@ public:
virtual int64_t GetOldestKeyPoolTime() { return GetTime(); }
virtual size_t KeypoolCountExternalKeys() { return 0; }
+
+ virtual const CKeyMetadata* GetMetadata(uint160 id) const { return nullptr; }
};
class LegacyScriptPubKeyMan : public ScriptPubKeyMan, public FillableSigningProvider
@@ -265,6 +267,8 @@ public:
int64_t GetOldestKeyPoolTime() override;
size_t KeypoolCountExternalKeys() override EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
+ const CKeyMetadata* GetMetadata(uint160 id) const override;
+
bool CanGetAddresses(bool internal = false) override;
// Map from Key ID to key metadata.