File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88set (dgb_coin_impl
99 rpc_data.hpp
10- rpc.hpp
10+ rpc.hpp rpc.cpp
11+ rpc_request.hpp
12+ softfork_check.hpp
1113 p2p_connection.hpp p2p_connection.cpp
1214 p2p_node.cpp p2p_node.hpp
1315 p2p_messages.hpp
Original file line number Diff line number Diff line change @@ -64,18 +64,25 @@ class Node : public dgb::interfaces::Node
6464
6565 config_t * m_config = nullptr ;
6666
67+ // Real io_context for the M3 NodeRPC transport (mirrors btc node.hpp).
68+ // rpc.hpp brings boost::asio in transitively; no extra include needed.
69+ boost::asio::io_context* m_context = nullptr ;
70+
6771 std::unique_ptr<NodeRPC> m_rpc;
6872
6973public:
70- Node (auto * /* context*/ , auto * config) : m_config(config)
74+ Node (auto * context, auto * config) : m_config(config), m_context(context )
7175 {
7276 }
7377
7478 void run ()
7579 {
76- // Stub NodeRPC: constructed so has-rpc presence wiring can be
77- // exercised, but no transport connect until M3.
78- m_rpc = std::make_unique<NodeRPC>(this );
80+ // M3: real NodeRPC transport (external-daemon FALLBACK path that V36
81+ // mandates persist alongside the embedded daemon). Mirrors btc
82+ // node.hpp; testnet drives the chain-identity genesis probe in
83+ // NodeRPC::check(). connect() (transport bring-up) is driven by the
84+ // pool-layer seam once an RPC endpoint is configured.
85+ m_rpc = std::make_unique<NodeRPC>(m_context, this , m_config->m_testnet );
7986 }
8087
8188 NodeRPC* rpc () { return m_rpc.get (); }
You can’t perform that action at this time.
0 commit comments