From 1050e62f101f606cfa32ed8df8a32a390dcb4042 Mon Sep 17 00:00:00 2001 From: clemahieu Date: Mon, 19 Jul 2021 10:31:36 +0100 Subject: [PATCH] Removing incorrect TCP assert as node id handshake messages can come under any socket type and this is the incorrect place to do such a check. --- nano/node/transport/tcp.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/nano/node/transport/tcp.cpp b/nano/node/transport/tcp.cpp index 7dd8ef1afe..e459a1e1f2 100644 --- a/nano/node/transport/tcp.cpp +++ b/nano/node/transport/tcp.cpp @@ -329,7 +329,6 @@ void nano::transport::tcp_channels::process_message (nano::message const & messa { // Initial node_id_handshake request without node ID debug_assert (message_a.header.type == nano::message_type::node_id_handshake); - debug_assert (type_a == nano::socket::type_t::undefined); node.stats.inc (nano::stat::type::message, nano::stat::detail::node_id_handshake, nano::stat::dir::in); } }