aboutsummaryrefslogtreecommitdiff
path: root/src/qt/rpcconsole.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-04-20 15:03:45 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-04-20 16:57:47 +0200
commit61457c179aec23227dcf3952c575052204103b50 (patch)
tree86f64b5e57b6b05ad60ea8642eec82e1f67eaa67 /src/qt/rpcconsole.h
parent094d9fda5ccee7d78a2e3d8b1eec17b8b6a33466 (diff)
downloadbitcoin-61457c179aec23227dcf3952c575052204103b50.tar.xz
refactor: Guard `RPCConsole::{add,remove}Wallet()` with `ENABLE_WALLET`
Diffstat (limited to 'src/qt/rpcconsole.h')
-rw-r--r--src/qt/rpcconsole.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/qt/rpcconsole.h b/src/qt/rpcconsole.h
index 528e2bef7d..30e41bae0b 100644
--- a/src/qt/rpcconsole.h
+++ b/src/qt/rpcconsole.h
@@ -5,6 +5,10 @@
#ifndef BITCOIN_QT_RPCCONSOLE_H
#define BITCOIN_QT_RPCCONSOLE_H
+#if defined(HAVE_CONFIG_H)
+#include <config/bitcoin-config.h>
+#endif
+
#include <qt/guiutil.h>
#include <qt/peertablemodel.h>
@@ -49,8 +53,11 @@ public:
}
void setClientModel(ClientModel *model = nullptr, int bestblock_height = 0, int64_t bestblock_date = 0, double verification_progress = 0.0);
- void addWallet(WalletModel * const walletModel);
+
+#ifdef ENABLE_WALLET
+ void addWallet(WalletModel* const walletModel);
void removeWallet(WalletModel* const walletModel);
+#endif // ENABLE_WALLET
enum MessageClass {
MC_ERROR,