Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework handshake visitor #4504

Merged

Conversation

pwojcikdev
Copy link
Contributor

No description provided.

@pwojcikdev pwojcikdev force-pushed the networking-fixes/handshake-refactor branch from 8f91bdf to 9446617 Compare March 19, 2024 09:27
@pwojcikdev pwojcikdev force-pushed the networking-fixes/handshake-refactor branch from 9446617 to 3603b5f Compare March 19, 2024 11:14
clemahieu
clemahieu previously approved these changes Mar 19, 2024
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));
Copy link
Contributor

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?

enum class status
{
abort,
progress,
Copy link
Contributor

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?

@qwahzi
Copy link
Collaborator

qwahzi commented Mar 19, 2024

Does this include retiring the legacy V1 handshake, and/or should it?

@pwojcikdev
Copy link
Contributor Author

@qwahzi No, it doesn't modify how v1/v2 handshake is handled.

@pwojcikdev pwojcikdev merged commit 5e7e7fc into nanocurrency:develop Mar 20, 2024
19 of 27 checks passed
@pwojcikdev pwojcikdev deleted the networking-fixes/handshake-refactor branch March 20, 2024 09:39
clemahieu pushed a commit to clemahieu/nano-node that referenced this pull request Mar 20, 2024
* Rework tcp_server handshake visitor

* Simplify message visitor

* Fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants