Skip to content

Commit 61457c1

Browse files
committed
refactor: Guard RPCConsole::{add,remove}Wallet() with ENABLE_WALLET
1 parent 094d9fd commit 61457c1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/qt/rpcconsole.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
#ifndef BITCOIN_QT_RPCCONSOLE_H
66
#define BITCOIN_QT_RPCCONSOLE_H
77

8+
#if defined(HAVE_CONFIG_H)
9+
#include <config/bitcoin-config.h>
10+
#endif
11+
812
#include <qt/guiutil.h>
913
#include <qt/peertablemodel.h>
1014

@@ -49,8 +53,11 @@ class RPCConsole: public QWidget
4953
}
5054

5155
void setClientModel(ClientModel *model = nullptr, int bestblock_height = 0, int64_t bestblock_date = 0, double verification_progress = 0.0);
52-
void addWallet(WalletModel * const walletModel);
56+
57+
#ifdef ENABLE_WALLET
58+
void addWallet(WalletModel* const walletModel);
5359
void removeWallet(WalletModel* const walletModel);
60+
#endif // ENABLE_WALLET
5461

5562
enum MessageClass {
5663
MC_ERROR,

0 commit comments

Comments
 (0)