diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2020-11-24 10:13:23 -0500 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2020-11-24 10:13:23 -0500 |
commit | 12bd0fc9d70333c54c83ebb08c734272dbd330c2 (patch) | |
tree | 325d5091ba8759fd2cfb2c8340139c72dbcdb8fd /src | |
parent | 31c9987976af8ac5ad40091256ac41a2ccb078cd (diff) |
Move NodeImpl from interfaces/node.cpp to node/interfaces.cpp
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/node/interfaces.cpp (renamed from src/interfaces/node.cpp) | 15 |
2 files changed, 11 insertions, 6 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 0409faee1e..dee2bc77fd 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -300,13 +300,13 @@ libbitcoin_server_a_SOURCES = \ index/txindex.cpp \ init.cpp \ interfaces/chain.cpp \ - interfaces/node.cpp \ miner.cpp \ net.cpp \ net_processing.cpp \ node/coin.cpp \ node/coinstats.cpp \ node/context.cpp \ + node/interfaces.cpp \ node/psbt.cpp \ node/transaction.cpp \ node/ui_interface.cpp \ diff --git a/src/interfaces/node.cpp b/src/node/interfaces.cpp index 2c5f8627e6..74098eba96 100644 --- a/src/interfaces/node.cpp +++ b/src/node/interfaces.cpp @@ -42,9 +42,14 @@ #include <boost/signals2/signal.hpp> -namespace interfaces { -namespace { +using interfaces::BlockTip; +using interfaces::Handler; +using interfaces::MakeHandler; +using interfaces::Node; +using interfaces::WalletClient; +namespace node { +namespace { class NodeImpl : public Node { public: @@ -295,9 +300,9 @@ public: NodeContext* m_context{nullptr}; util::Ref m_context_ref; }; - } // namespace +} // namespace node -std::unique_ptr<Node> MakeNode(NodeContext* context) { return MakeUnique<NodeImpl>(context); } - +namespace interfaces { +std::unique_ptr<Node> MakeNode(NodeContext* context) { return MakeUnique<node::NodeImpl>(context); } } // namespace interfaces |