diff --git a/nano/node/transport/tcp_server.cpp b/nano/node/transport/tcp_server.cpp index e6ca627824..a10d85dd54 100644 --- a/nano/node/transport/tcp_server.cpp +++ b/nano/node/transport/tcp_server.cpp @@ -475,7 +475,7 @@ auto nano::transport::tcp_server::process_message (std::unique_ptrstats.inc (nano::stat::type::tcp_server, nano::stat::detail::node_id_handshake, nano::stat::dir::in); - handshake_received = true; - node->logger.debug (nano::log::type::tcp_server, "Handshake query received ({})", fmt::streamed (remote_endpoint)); + node->stats.inc (nano::stat::type::tcp_server, nano::stat::detail::node_id_handshake, nano::stat::dir::in); + node->logger.debug (nano::log::type::tcp_server, "Handshake message received ({})", fmt::streamed (remote_endpoint)); if (message.query) { @@ -605,7 +604,7 @@ auto nano::transport::tcp_server::process_handshake (nano::node_id_handshake con } } - return handshake_status::progress; + return handshake_status::handshake; // Handshake is in progress } void nano::transport::tcp_server::send_handshake_response (nano::node_id_handshake::query_payload const & query, bool v2) diff --git a/nano/node/transport/tcp_server.hpp b/nano/node/transport/tcp_server.hpp index cde01c25f4..e8a220bc14 100644 --- a/nano/node/transport/tcp_server.hpp +++ b/nano/node/transport/tcp_server.hpp @@ -97,7 +97,7 @@ class tcp_server final : public std::enable_shared_from_this enum class handshake_status { abort, - progress, + handshake, realtime, bootstrap, };