mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-05 02:33:07 +02:00
Move NodeImpl from interfaces/node.cpp to node/interfaces.cpp
This commit is contained in:
@@ -300,13 +300,13 @@ libbitcoin_server_a_SOURCES = \
|
|||||||
index/txindex.cpp \
|
index/txindex.cpp \
|
||||||
init.cpp \
|
init.cpp \
|
||||||
interfaces/chain.cpp \
|
interfaces/chain.cpp \
|
||||||
interfaces/node.cpp \
|
|
||||||
miner.cpp \
|
miner.cpp \
|
||||||
net.cpp \
|
net.cpp \
|
||||||
net_processing.cpp \
|
net_processing.cpp \
|
||||||
node/coin.cpp \
|
node/coin.cpp \
|
||||||
node/coinstats.cpp \
|
node/coinstats.cpp \
|
||||||
node/context.cpp \
|
node/context.cpp \
|
||||||
|
node/interfaces.cpp \
|
||||||
node/psbt.cpp \
|
node/psbt.cpp \
|
||||||
node/transaction.cpp \
|
node/transaction.cpp \
|
||||||
node/ui_interface.cpp \
|
node/ui_interface.cpp \
|
||||||
|
|||||||
@@ -42,9 +42,14 @@
|
|||||||
|
|
||||||
#include <boost/signals2/signal.hpp>
|
#include <boost/signals2/signal.hpp>
|
||||||
|
|
||||||
namespace interfaces {
|
using interfaces::BlockTip;
|
||||||
namespace {
|
using interfaces::Handler;
|
||||||
|
using interfaces::MakeHandler;
|
||||||
|
using interfaces::Node;
|
||||||
|
using interfaces::WalletClient;
|
||||||
|
|
||||||
|
namespace node {
|
||||||
|
namespace {
|
||||||
class NodeImpl : public Node
|
class NodeImpl : public Node
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -295,9 +300,9 @@ public:
|
|||||||
NodeContext* m_context{nullptr};
|
NodeContext* m_context{nullptr};
|
||||||
util::Ref m_context_ref;
|
util::Ref m_context_ref;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace
|
} // 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
|
} // namespace interfaces
|
||||||
Reference in New Issue
Block a user