Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Mar 14, 2024
1 parent 874db47 commit ddb9adb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions nano/node/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,6 @@ void nano::network::flood_block_many (std::deque<std::shared_ptr<nano::block>> b
}
}

void nano::network::send_confirm_req (std::shared_ptr<nano::transport::channel> const & channel_a, std::pair<nano::block_hash, nano::root> const & hash_root_a)
{
auto & [hash, root] = hash_root_a;
// Confirmation request with hash + root
nano::confirm_req req (node.network_params.network, hash, root);
channel_a->send (req);
}

namespace
{
class network_message_visitor : public nano::message_visitor
Expand Down
1 change: 0 additions & 1 deletion nano/node/network.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ class network final
void merge_peer (nano::endpoint const &);
void send_keepalive (std::shared_ptr<nano::transport::channel> const &);
void send_keepalive_self (std::shared_ptr<nano::transport::channel> const &);
void send_confirm_req (std::shared_ptr<nano::transport::channel> const & channel_a, std::pair<nano::block_hash, nano::root> const & hash_root_a);
std::shared_ptr<nano::transport::channel> find_node_id (nano::account const &);
std::shared_ptr<nano::transport::channel> find_channel (nano::endpoint const &);
bool not_a_peer (nano::endpoint const &, bool);
Expand Down

0 comments on commit ddb9adb

Please sign in to comment.