refactor: Guard RPCConsole::{add,remove}Wallet() with ENABLE_WALLET

This commit is contained in:
Hennadii Stepanov 2022-04-20 15:03:45 +02:00
parent 094d9fda5c
commit 61457c179a
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -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,