diff options
author | Andrew Chow <github@achow101.com> | 2022-08-25 14:35:28 -0400 |
---|---|---|
committer | Andrew Chow <github@achow101.com> | 2022-08-26 13:14:51 -0400 |
commit | 22401f17e026ead4bc3fe96967eec56a719a4f75 (patch) | |
tree | af171262e7a0b0e5dc5935459660fe7a23fc27f7 /src/wallet/walletdb.h | |
parent | 35f428fae68ad974abdce0fa905148f620a9443c (diff) | |
download | bitcoin-22401f17e026ead4bc3fe96967eec56a719a4f75.tar.xz |
Implement LegacyScriptPubKeyMan::DeleteRecords
Diffstat (limited to 'src/wallet/walletdb.h')
-rw-r--r-- | src/wallet/walletdb.h | 6 |
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(); |