Skip to content

Commit

Permalink
Enable chaser_populate.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Aug 6, 2024
1 parent cf90677 commit 994057e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion include/bitcoin/node/full_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class BCN_API full_node
chaser_block chaser_block_;
chaser_header chaser_header_;
chaser_check chaser_check_;
////chaser_populate chaser_populate_;
chaser_populate chaser_populate_;
chaser_validate chaser_validate_;
chaser_confirm chaser_confirm_;
chaser_transaction chaser_transaction_;
Expand Down
13 changes: 7 additions & 6 deletions src/full_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ full_node::full_node(query& query, const configuration& configuration,
chaser_block_(*this),
chaser_header_(*this),
chaser_check_(*this),
////chaser_populate_(*this),
chaser_populate_(*this),
chaser_validate_(*this),
chaser_confirm_(*this),
chaser_transaction_(*this),
Expand Down Expand Up @@ -85,7 +85,7 @@ void full_node::do_start(const result_handler& handler) NOEXCEPT
chaser_header_.stopping(ec);
chaser_block_.stopping(ec);
chaser_check_.stopping(ec);
////chaser_populate_.stopping(ec);
chaser_populate_.stopping(ec);
chaser_validate_.stopping(ec);
chaser_confirm_.stopping(ec);
chaser_transaction_.stopping(ec);
Expand All @@ -99,7 +99,7 @@ void full_node::do_start(const result_handler& handler) NOEXCEPT
chaser_header_.start() :
chaser_block_.start()))) ||
((ec = chaser_check_.start())) ||
////((ec = chaser_populate_.start())) ||
((ec = chaser_populate_.start())) ||
((ec = chaser_validate_.start())) ||
((ec = chaser_confirm_.start())) ||
((ec = chaser_transaction_.start())) ||
Expand Down Expand Up @@ -245,10 +245,11 @@ void full_node::unsubscribe_events(object_key key) NOEXCEPT
// Blocks.
// ----------------------------------------------------------------------------

void full_node::populate(const chain::block::cptr&, const header_link&, size_t,
network::result_handler&&) NOEXCEPT
void full_node::populate(const chain::block::cptr& block,
const header_link& link, size_t height,
network::result_handler&& complete) NOEXCEPT
{
////chaser_populate_.populate(block, link, height, std::move(complete));
chaser_populate_.populate(block, link, height, std::move(complete));
}

void full_node::validate(const chain::block::cptr& block,
Expand Down

0 comments on commit 994057e

Please sign in to comment.