aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2018-03-29 10:08:38 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2018-04-05 21:09:21 +0100
commit39bc2faa2e90d8adfa77e650f8a807828da3f6b9 (patch)
tree0ec6291190ed39a70c5fa79f633aba5f0c108ccf /src/init.cpp
parent5f0c6a7b0e47e03f848dc992d37fe209dd9c6975 (diff)
wallet: Make WalletInitInterface and DummyWalletInit private
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 4bb2bc2c3e..8c86bff11c 100644
--- a/src/init.cpp
+++ b/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;