aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletdb.h
diff options
context:
space:
mode:
authorAndrew Chow <github@achow101.com>2022-08-25 14:35:28 -0400
committerAndrew Chow <github@achow101.com>2022-08-26 13:14:51 -0400
commit22401f17e026ead4bc3fe96967eec56a719a4f75 (patch)
treeaf171262e7a0b0e5dc5935459660fe7a23fc27f7 /src/wallet/walletdb.h
parent35f428fae68ad974abdce0fa905148f620a9443c (diff)
downloadbitcoin-22401f17e026ead4bc3fe96967eec56a719a4f75.tar.xz
Implement LegacyScriptPubKeyMan::DeleteRecords
Diffstat (limited to 'src/wallet/walletdb.h')
-rw-r--r--src/wallet/walletdb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/walletdb.h b/src/wallet/walletdb.h
index a04ea598b6..6aa25fae03 100644
--- a/src/wallet/walletdb.h
+++ b/src/wallet/walletdb.h
@@ -84,6 +84,9 @@ extern const std::string WALLETDESCRIPTORCKEY;
extern const std::string WALLETDESCRIPTORKEY;
extern const std::string WATCHMETA;
extern const std::string WATCHS;
+
+// Keys in this set pertain only to the legacy wallet (LegacyScriptPubKeyMan) and are removed during migration from legacy to descriptors.
+extern const std::unordered_set<std::string> LEGACY_TYPES;
} // namespace DBKeys
/* simple HD chain data model */
@@ -276,6 +279,9 @@ public:
//! write the hdchain model (external chain child index counter)
bool WriteHDChain(const CHDChain& chain);
+ //! Delete records of the given types
+ bool EraseRecords(const std::unordered_set<std::string>& types);
+
bool WriteWalletFlags(const uint64_t flags);
//! Begin a new transaction
bool TxnBegin();