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
commit089e17d45c8147bd0303bcbf02dc0f7d6b387f2a (patch)
treed0aef56cc5aa8f662f15d4e590611cbd6a6a93ed /src/wallet/scriptpubkeyman.h
parent0eac7088ab878372a72f85f9c5f7662a14199083 (diff)
downloadbitcoin-089e17d45c8147bd0303bcbf02dc0f7d6b387f2a.tar.xz
Refactor: Move RewriteDB code out of CWallet
This commit does not change behavior.
Diffstat (limited to 'src/wallet/scriptpubkeyman.h')
-rw-r--r--src/wallet/scriptpubkeyman.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/scriptpubkeyman.h b/src/wallet/scriptpubkeyman.h
index 0e38cbf657..24b0a27881 100644
--- a/src/wallet/scriptpubkeyman.h
+++ b/src/wallet/scriptpubkeyman.h
@@ -176,6 +176,9 @@ public:
virtual bool HavePrivateKeys() const { return false; }
+ //! The action to do when the DB needs rewrite
+ virtual void RewriteDB() {}
+
virtual int64_t GetOldestKeyPoolTime() { return GetTime(); }
virtual size_t KeypoolCountExternalKeys() { return 0; }
@@ -288,6 +291,8 @@ public:
bool HavePrivateKeys() const override;
+ void RewriteDB() override;
+
int64_t GetOldestKeyPoolTime() override;
size_t KeypoolCountExternalKeys() override EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);