Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | |||||
bool fFeeEstimatesInitialized = false; | bool fFeeEstimatesInitialized = false; | ||||
static const bool DEFAULT_PROXYRANDOMIZE = true; | static const bool DEFAULT_PROXYRANDOMIZE = true; | ||||
static const bool DEFAULT_REST_ENABLE = false; | static const bool DEFAULT_REST_ENABLE = false; | ||||
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; | ||||
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(const CChainParams &chainParams) override { return true; } | |||||
bool Open(const CChainParams &chainParams) 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 | #if ENABLE_ZMQ | ||||
static CZMQNotificationInterface *pzmqNotificationInterface = nullptr; | static CZMQNotificationInterface *pzmqNotificationInterface = nullptr; | ||||
#endif | #endif | ||||
#ifdef WIN32 | #ifdef WIN32 | ||||
// Win32 LevelDB doesn't use filedescriptors, and the ones used for accessing | // Win32 LevelDB doesn't use filedescriptors, and the ones used for accessing | ||||
// block files don't count towards the fd_set size limit anyway. | // block files don't count towards the fd_set size limit anyway. | ||||
▲ Show 20 Lines • Show All 2,262 Lines • Show Last 20 Lines |