mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-08 14:34:53 -05:00
refactor: Guard RPCConsole::{add,remove}Wallet()
with ENABLE_WALLET
This commit is contained in:
parent
094d9fda5c
commit
61457c179a
1 changed files with 8 additions and 1 deletions
|
@ -5,6 +5,10 @@
|
||||||
#ifndef BITCOIN_QT_RPCCONSOLE_H
|
#ifndef BITCOIN_QT_RPCCONSOLE_H
|
||||||
#define 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/guiutil.h>
|
||||||
#include <qt/peertablemodel.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 setClientModel(ClientModel *model = nullptr, int bestblock_height = 0, int64_t bestblock_date = 0, double verification_progress = 0.0);
|
||||||
|
|
||||||
|
#ifdef ENABLE_WALLET
|
||||||
void addWallet(WalletModel* const walletModel);
|
void addWallet(WalletModel* const walletModel);
|
||||||
void removeWallet(WalletModel* const walletModel);
|
void removeWallet(WalletModel* const walletModel);
|
||||||
|
#endif // ENABLE_WALLET
|
||||||
|
|
||||||
enum MessageClass {
|
enum MessageClass {
|
||||||
MC_ERROR,
|
MC_ERROR,
|
||||||
|
|
Loading…
Add table
Reference in a new issue