aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/wallet.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2019-08-14 14:25:53 -0400
committerAndrew Chow <achow101-github@achow101.com>2020-04-23 13:59:48 -0400
commitce24a944940019185efebcc5d85eac458ed26016 (patch)
tree82772b6c25fcecd552f51703f4a68326ff7326d5 /src/interfaces/wallet.h
parent1cb42b22b11c27e64462afc25a94b2fc50bfa113 (diff)
downloadbitcoin-ce24a944940019185efebcc5d85eac458ed26016.tar.xz
Add IsLegacy to CWallet so that the GUI knows whether to show watchonly
Diffstat (limited to 'src/interfaces/wallet.h')
-rw-r--r--src/interfaces/wallet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interfaces/wallet.h b/src/interfaces/wallet.h
index 0157e9cf95..5d870c5e3d 100644
--- a/src/interfaces/wallet.h
+++ b/src/interfaces/wallet.h
@@ -266,6 +266,9 @@ public:
// Remove wallet.
virtual void remove() = 0;
+ //! Return whether is a legacy wallet
+ virtual bool isLegacy() = 0;
+
//! Register handler for unload message.
using UnloadFn = std::function<void()>;
virtual std::unique_ptr<Handler> handleUnload(UnloadFn fn) = 0;