diff --git a/src/Makefile.am b/src/Makefile.am --- a/src/Makefile.am +++ b/src/Makefile.am @@ -181,6 +181,7 @@ netbase.h \ netmessagemaker.h \ node/coin.h \ + node/context.h \ node/psbt.h \ node/transaction.h \ noui.h \ diff --git a/src/init.h b/src/init.h --- a/src/init.h +++ b/src/init.h @@ -7,6 +7,7 @@ #ifndef BITCOIN_INIT_H #define BITCOIN_INIT_H +#include #include #include @@ -18,17 +19,6 @@ class HTTPRPCRequestProcessor; class RPCServer; -namespace interfaces { -class Chain; -class ChainClient; -} // namespace interfaces - -//! Pointers to interfaces used during init and destroyed on shutdown. -struct NodeContext { - std::unique_ptr chain; - std::vector> chain_clients; -}; - namespace boost { class thread_group; } // namespace boost diff --git a/src/node/context.h b/src/node/context.h new file mode 100644 --- /dev/null +++ b/src/node/context.h @@ -0,0 +1,22 @@ +// Copyright (c) 2019 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#ifndef BITCOIN_NODE_CONTEXT_H +#define BITCOIN_NODE_CONTEXT_H + +#include +#include + +namespace interfaces { +class Chain; +class ChainClient; +} // namespace interfaces + +//! Pointers to interfaces used during init and destroyed on shutdown. +struct NodeContext { + std::unique_ptr chain; + std::vector> chain_clients; +}; + +#endif // BITCOIN_NODE_CONTEXT_H