mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
wallet: Refactor to WalletInitInterface* const g_wallet_init_interface
This commit is contained in:
parent
39bc2faa2e
commit
d894894aab
@ -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__);
|
||||
|
@ -13,7 +13,7 @@ class CScheduler;
|
||||
class CWallet;
|
||||
|
||||
class WalletInitInterface;
|
||||
extern std::unique_ptr<WalletInitInterface> g_wallet_init_interface;
|
||||
extern WalletInitInterface* const g_wallet_init_interface;
|
||||
|
||||
namespace boost
|
||||
{
|
||||
|
@ -4,6 +4,7 @@
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <chainparams.h>
|
||||
#include <init.h>
|
||||
#include <net.h>
|
||||
#include <util.h>
|
||||
#include <utilmoneystr.h>
|
||||
@ -46,7 +47,8 @@ public:
|
||||
void Close() override;
|
||||
};
|
||||
|
||||
std::unique_ptr<WalletInitInterface> g_wallet_init_interface(new WalletInit);
|
||||
static WalletInit g_wallet_init;
|
||||
WalletInitInterface* const g_wallet_init_interface = &g_wallet_init;
|
||||
|
||||
std::string WalletInit::GetHelpString(bool showDebug)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user