mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 06:43:45 +01:00
wallet: Make WalletInitInterface and DummyWalletInit private
This commit is contained in:
19
src/init.cpp
19
src/init.cpp
@@ -72,7 +72,24 @@ static const bool DEFAULT_STOPAFTERBLOCKIMPORT = false;
|
||||
|
||||
std::unique_ptr<CConnman> g_connman;
|
||||
std::unique_ptr<PeerLogicValidation> peerLogic;
|
||||
std::unique_ptr<WalletInitInterface> g_wallet_init_interface;
|
||||
|
||||
#if !(ENABLE_WALLET)
|
||||
class DummyWalletInit : public WalletInitInterface {
|
||||
public:
|
||||
|
||||
std::string GetHelpString(bool showDebug) override {return std::string{};}
|
||||
bool ParameterInteraction() override {return true;}
|
||||
void RegisterRPC(CRPCTable &) override {}
|
||||
bool Verify() override {return true;}
|
||||
bool Open() override {return true;}
|
||||
void Start(CScheduler& scheduler) override {}
|
||||
void Flush() override {}
|
||||
void Stop() override {}
|
||||
void Close() override {}
|
||||
};
|
||||
|
||||
std::unique_ptr<WalletInitInterface> g_wallet_init_interface(new DummyWalletInit);
|
||||
#endif
|
||||
|
||||
#if ENABLE_ZMQ
|
||||
static CZMQNotificationInterface* pzmqNotificationInterface = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user