mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
wallet: Make WalletInitInterface and DummyWalletInit private
This commit is contained in:
parent
5f0c6a7b0e
commit
39bc2faa2e
9 changed files with 54 additions and 85 deletions
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue