diff options
author | Andrew Chow <achow101-github@achow101.com> | 2021-03-01 17:03:52 -0500 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2021-06-24 13:49:22 -0400 |
commit | 74fede3b8ba69e2cc82c617cdf406ab79df58825 (patch) | |
tree | 8d5e969d58e535cab4c7cbb7099f39dedf8154df /src/wallet/walletutil.h | |
parent | 432ba9e5434da90d2cf680f23e8c7b7164c9f945 (diff) | |
download | bitcoin-74fede3b8ba69e2cc82c617cdf406ab79df58825.tar.xz |
wallet: Upgrade existing descriptor caches
Add functions to upgrade existing descriptor caches to support the use
of last hardened xpub caching.
Diffstat (limited to 'src/wallet/walletutil.h')
-rw-r--r-- | src/wallet/walletutil.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/walletutil.h b/src/wallet/walletutil.h index 0713f768c1..c75e1759bc 100644 --- a/src/wallet/walletutil.h +++ b/src/wallet/walletutil.h @@ -43,6 +43,9 @@ enum WalletFlags : uint64_t { // Indicates that the metadata has already been upgraded to contain key origins WALLET_FLAG_KEY_ORIGIN_METADATA = (1ULL << 1), + // Indicates that the descriptor cache has been upgraded to cache last hardened xpubs + WALLET_FLAG_LAST_HARDENED_XPUB_CACHED = (1ULL << 2), + // will enforce the rule that the wallet can't contain any private keys (only watch-only/pubkeys) WALLET_FLAG_DISABLE_PRIVATE_KEYS = (1ULL << 32), |