diff options
author | John Newbery <john@johnnewbery.com> | 2018-02-21 11:38:53 -0500 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2018-03-27 14:48:48 -0400 |
commit | 49baa4a462193d8d82b51d464740aa5f1114edf1 (patch) | |
tree | eaa2de9eabbd59e6cf28360493aec5d3c4c39e84 /src/init.h | |
parent | caaf9722f3200775cf37aab6b911a7054b2378e7 (diff) |
[wallet] Use global g_wallet_init_interface to init/destroy the wallet.
This commit creates a global g_wallet_init_interface, which is created
in bitcoind and bitcoin-qt. g_wallet_init_interface is used to init
and destroy the wallet.
This removes the dependency from init.cpp on the wallet library.
Diffstat (limited to 'src/init.h')
-rw-r--r-- | src/init.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/init.h b/src/init.h index 33f97a55a5..11a37bef4e 100644 --- a/src/init.h +++ b/src/init.h @@ -6,11 +6,15 @@ #ifndef BITCOIN_INIT_H #define BITCOIN_INIT_H +#include <memory> #include <string> class CScheduler; class CWallet; +class WalletInitInterface; +extern std::unique_ptr<WalletInitInterface> g_wallet_init_interface; + namespace boost { class thread_group; |