diff options
| author | John Newbery <[email protected]> | 2018-02-21 11:38:53 -0500 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2018-03-27 14:48:48 -0400 |
| commit | 49baa4a462193d8d82b51d464740aa5f1114edf1 (patch) | |
| tree | eaa2de9eabbd59e6cf28360493aec5d3c4c39e84 /src/init.h | |
| parent | [wallet] Create wallet init interface. (diff) | |
| download | discoin-49baa4a462193d8d82b51d464740aa5f1114edf1.tar.xz discoin-49baa4a462193d8d82b51d464740aa5f1114edf1.zip | |
[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 33f97a55a..11a37bef4 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; |