Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||
static const bool DEFAULT_STOPAFTERBLOCKIMPORT = false; | static const bool DEFAULT_STOPAFTERBLOCKIMPORT = false; | ||||
std::unique_ptr<CConnman> g_connman; | std::unique_ptr<CConnman> g_connman; | ||||
std::unique_ptr<PeerLogicValidation> peerLogic; | std::unique_ptr<PeerLogicValidation> peerLogic; | ||||
#if !(ENABLE_WALLET) | #if !(ENABLE_WALLET) | ||||
class DummyWalletInit : public WalletInitInterface { | class DummyWalletInit : public WalletInitInterface { | ||||
public: | public: | ||||
std::string GetHelpString(bool showDebug) override { return std::string{}; } | std::string GetHelpString(bool showDebug) const override { | ||||
bool ParameterInteraction() override { return true; } | return std::string{}; | ||||
void RegisterRPC(CRPCTable &) override {} | } | ||||
bool Verify(const CChainParams &chainParams) override { return true; } | bool ParameterInteraction() const override { return true; } | ||||
bool Open(const CChainParams &chainParams) override { return true; } | void RegisterRPC(CRPCTable &) const override {} | ||||
void Start(CScheduler &scheduler) override {} | bool Verify(const CChainParams &chainParams) const override { return true; } | ||||
void Flush() override {} | bool Open(const CChainParams &chainParams) const override { | ||||
void Stop() override {} | LogPrintf("No wallet support compiled in!\n"); | ||||
void Close() override {} | return true; | ||||
} | |||||
void Start(CScheduler &scheduler) const override {} | |||||
void Flush() const override {} | |||||
void Stop() const override {} | |||||
void Close() const override {} | |||||
}; | }; | ||||
static DummyWalletInit g_dummy_wallet_init; | static DummyWalletInit g_dummy_wallet_init; | ||||
WalletInitInterface *const g_wallet_init_interface = &g_dummy_wallet_init; | WalletInitInterface *const g_wallet_init_interface = &g_dummy_wallet_init; | ||||
#endif | #endif | ||||
#if ENABLE_ZMQ | #if ENABLE_ZMQ | ||||
static CZMQNotificationInterface *pzmqNotificationInterface = nullptr; | static CZMQNotificationInterface *pzmqNotificationInterface = nullptr; | ||||
▲ Show 20 Lines • Show All 2,304 Lines • Show Last 20 Lines |