Skip to content

Commit

Permalink
Comments, remove dead code, enable run().
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Feb 9, 2024
1 parent 18e24e9 commit afdc8bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
9 changes: 3 additions & 6 deletions include/bitcoin/node/full_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ class BCN_API full_node
typedef database::store<database::map> store;
typedef database::query<store> query;

// TODO: set arguments.
typedef network::desubscriber<object_key, size_t> poll_subscriber;

/// Constructors.
/// -----------------------------------------------------------------------

Expand All @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions src/full_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit afdc8bf

Please sign in to comment.