From ce24a944940019185efebcc5d85eac458ed26016 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Wed, 14 Aug 2019 14:25:53 -0400 Subject: Add IsLegacy to CWallet so that the GUI knows whether to show watchonly --- src/wallet/wallet.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/wallet/wallet.h') 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(); -- cgit v1.2.3