diff options
author | Andrew Chow <achow101-github@achow101.com> | 2019-08-14 14:25:53 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-04-23 13:59:48 -0400 |
commit | ce24a944940019185efebcc5d85eac458ed26016 (patch) | |
tree | 82772b6c25fcecd552f51703f4a68326ff7326d5 /src/wallet/wallet.h | |
parent | 1cb42b22b11c27e64462afc25a94b2fc50bfa113 (diff) | |
download | bitcoin-ce24a944940019185efebcc5d85eac458ed26016.tar.xz |
Add IsLegacy to CWallet so that the GUI knows whether to show watchonly
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r-- | src/wallet/wallet.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 29c6bced95..66d4a51a9c 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -1165,6 +1165,9 @@ public: returns false if unknown, non-tolerable flags are present */ bool SetWalletFlags(uint64_t overwriteFlags, bool memOnly); + /** Determine if we are a legacy wallet */ + bool IsLegacy() const; + /** Returns a bracketed wallet name for displaying in logs, will return [default wallet] if the wallet has no name */ const std::string GetDisplayName() const override { std::string wallet_name = GetName().length() == 0 ? "default wallet" : GetName(); |