mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
wallet: Refactor to WalletInitInterface* const g_wallet_init_interface
This commit is contained in:
parent
39bc2faa2e
commit
d894894aab
3 changed files with 6 additions and 4 deletions
|
|
@ -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__);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue