-
Notifications
You must be signed in to change notification settings - Fork 787
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Rework handshake visitor #4504
Rework handshake visitor #4504
Conversation
8f91bdf
to
9446617
Compare
9446617
to
3603b5f
Compare
nano/node/transport/tcp_server.cpp
Outdated
node->logger.debug (nano::log::type::tcp_server, "Handshake query received ({})", nano::util::to_str (server->remote_endpoint)); | ||
server->handshake_received = true; | ||
|
||
node->logger.debug (nano::log::type::tcp_server, "Handshake query received ({})", fmt::streamed (server->remote_endpoint)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be within if (message.query) since it says it's a query? Or reworded to handshake message?
nano/node/transport/tcp_server.hpp
Outdated
enum class status | ||
{ | ||
abort, | ||
progress, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps "handshake" instead of "progress" to signify what's progressing?
Does this include retiring the legacy V1 handshake, and/or should it? |
@qwahzi No, it doesn't modify how v1/v2 handshake is handled. |
* Rework tcp_server handshake visitor * Simplify message visitor * Fixes
No description provided.