aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wallet/init.cpp')
-rw-r--r--src/wallet/init.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/init.cpp b/src/wallet/init.cpp
index fd6c8cc0ca..c860eede05 100644
--- a/src/wallet/init.cpp
+++ b/src/wallet/init.cpp
@@ -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)
{