aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/wallet.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2019-02-06 21:26:55 -0500
committerAndrew Chow <achow101-github@achow101.com>2019-02-10 12:24:53 -0500
commit7687f7873b75c3cbdfa15ab570211dc39d24ab80 (patch)
tree2bbbc90f6c961ae1e6005be6584c63d94d721653 /src/interfaces/wallet.h
parent5c99bb00470057f573f1d76b76e744a6ccd65b08 (diff)
downloadbitcoin-7687f7873b75c3cbdfa15ab570211dc39d24ab80.tar.xz
[wallet] Support creating a blank wallet
A blank wallet is a wallet that has no keys, script or watch only things. A new wallet flag indicating that it is blank will be set when the wallet is blank. Once it is no longer blank (a seed has been generated, keys or scripts imported, etc), the flag will be unset.
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 72c64ded01..a86212356c 100644
--- a/src/interfaces/wallet.h
+++ b/src/interfaces/wallet.h
@@ -235,6 +235,9 @@ public:
// Return whether HD enabled.
virtual bool hdEnabled() = 0;
+ // Return whether the wallet is blank.
+ virtual bool canGetAddresses() = 0;
+
// check if a certain wallet flag is set.
virtual bool IsWalletFlagSet(uint64_t flag) = 0;