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. (#3379)

This commit is contained in:
clemahieu 2021-07-19 11:48:33 +01:00 committed by GitHub
commit abc45bad9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}