Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | public: | ||||
bool Verify(const CChainParams &chainParams) override { return true; } | bool Verify(const CChainParams &chainParams) override { return true; } | ||||
bool Open(const CChainParams &chainParams) override { return true; } | bool Open(const CChainParams &chainParams) override { return true; } | ||||
void Start(CScheduler &scheduler) override {} | void Start(CScheduler &scheduler) override {} | ||||
void Flush() override {} | void Flush() override {} | ||||
void Stop() override {} | void Stop() override {} | ||||
void Close() override {} | void Close() override {} | ||||
}; | }; | ||||
std::unique_ptr<WalletInitInterface> | static DummyWalletInit g_dummy_wallet_init; | ||||
g_wallet_init_interface(new DummyWalletInit); | 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; | ||||
#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 | ||||
▲ Show 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | #ifndef WIN32 | ||||
} catch (const fs::filesystem_error &e) { | } catch (const fs::filesystem_error &e) { | ||||
LogPrintf("%s: Unable to remove pidfile: %s\n", __func__, e.what()); | LogPrintf("%s: Unable to remove pidfile: %s\n", __func__, e.what()); | ||||
} | } | ||||
#endif | #endif | ||||
UnregisterAllValidationInterfaces(); | UnregisterAllValidationInterfaces(); | ||||
GetMainSignals().UnregisterBackgroundSignalScheduler(); | GetMainSignals().UnregisterBackgroundSignalScheduler(); | ||||
GetMainSignals().UnregisterWithMempoolSignals(g_mempool); | GetMainSignals().UnregisterWithMempoolSignals(g_mempool); | ||||
g_wallet_init_interface->Close(); | g_wallet_init_interface->Close(); | ||||
g_wallet_init_interface.reset(); | |||||
globalVerifyHandle.reset(); | globalVerifyHandle.reset(); | ||||
ECC_Stop(); | ECC_Stop(); | ||||
LogPrintf("%s: done\n", __func__); | LogPrintf("%s: done\n", __func__); | ||||
} | } | ||||
/** | /** | ||||
* Signal handlers are very limited in what they are allowed to do, so: | * Signal handlers are very limited in what they are allowed to do, so: | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 2,062 Lines • Show Last 20 Lines |