diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2018-03-30 09:48:29 +0100 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2018-04-05 21:09:22 +0100 |
commit | d894894aab78dbd5e32267313237648933248377 (patch) | |
tree | 573bad6ae0e6e39d703ceca0ed0be93d3b642e94 /src/init.cpp | |
parent | 39bc2faa2e90d8adfa77e650f8a807828da3f6b9 (diff) |
wallet: Refactor to WalletInitInterface* const g_wallet_init_interface
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp index 8c86bff11c..880c8bce1e 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -88,7 +88,8 @@ public: void Close() override {} }; -std::unique_ptr<WalletInitInterface> g_wallet_init_interface(new DummyWalletInit); +static DummyWalletInit g_dummy_wallet_init; +WalletInitInterface* const g_wallet_init_interface = &g_dummy_wallet_init; #endif #if ENABLE_ZMQ @@ -283,7 +284,6 @@ void Shutdown() GetMainSignals().UnregisterBackgroundSignalScheduler(); GetMainSignals().UnregisterWithMempoolSignals(mempool); g_wallet_init_interface->Close(); - g_wallet_init_interface.reset(); globalVerifyHandle.reset(); ECC_Stop(); LogPrintf("%s: done\n", __func__); |