From afdc8bf8c0dffab6b7396d126a6b0718f2d46fd4 Mon Sep 17 00:00:00 2001 From: evoskuil Date: Fri, 9 Feb 2024 13:59:43 -0500 Subject: [PATCH] Comments, remove dead code, enable run(). --- include/bitcoin/node/full_node.hpp | 9 +++------ src/full_node.cpp | 8 ++++---- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/include/bitcoin/node/full_node.hpp b/include/bitcoin/node/full_node.hpp index fe175e3a..a28d65ad 100644 --- a/include/bitcoin/node/full_node.hpp +++ b/include/bitcoin/node/full_node.hpp @@ -36,9 +36,6 @@ class BCN_API full_node typedef database::store store; typedef database::query query; - // TODO: set arguments. - typedef network::desubscriber poll_subscriber; - /// Constructors. /// ----------------------------------------------------------------------- @@ -52,13 +49,13 @@ class BCN_API full_node /// Start the node (seed and manual services). void start(network::result_handler&& handler) NOEXCEPT override; - /// Run the node (inbound and outbound services). - ////void run(network::result_handler&& handler) NOEXCEPT override; + /// Run the node (inbound/outbound services and blockchain chasers). + void run(network::result_handler&& handler) NOEXCEPT override; /// Properties. /// ----------------------------------------------------------------------- - // Configuration settings for all libraries. + /// Configuration settings for all libraries. const configuration& config() const NOEXCEPT; /// Thread safe synchronous archival interface. diff --git a/src/full_node.cpp b/src/full_node.cpp index 6a1f2e8b..c190d375 100644 --- a/src/full_node.cpp +++ b/src/full_node.cpp @@ -56,10 +56,10 @@ void full_node::start(result_handler&& handler) NOEXCEPT } // Base (p2p) invokes do_run() override. -////void full_node::run(result_handler&& handler) NOEXCEPT -////{ -//// p2p::run(std::move(handler)); -////} +void full_node::run(result_handler&& handler) NOEXCEPT +{ + p2p::run(std::move(handler)); +} void full_node::do_run(const result_handler& handler) NOEXCEPT {