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

coot/ping 0.2.0.3 #4589

Merged
merged 5 commits into from
Jun 9, 2023
Merged

coot/ping 0.2.0.3 #4589

merged 5 commits into from
Jun 9, 2023

Conversation

coot
Copy link
Contributor

@coot coot commented Jun 9, 2023

  • handshake: make the code more readable
  • cardano-ping: modify proposed versions when quering
  • cardano-ping: printing of query result
  • cardano-ping: v0.2.0.3

@coot coot force-pushed the coot/ping-0.2.0.3 branch from 0e84063 to 1a59bb3 Compare June 9, 2023 10:38
@coot coot requested a review from bolt12 June 9, 2023 10:41
cardano-ping/src/Cardano/Network/Ping.hs Outdated Show resolved Hide resolved
coot added 3 commits June 9, 2023 13:50
When doing a query we send `InitiatorAndResponder` flag for versions
smaller than `NodeToNodeVersionV11`.  These versions of handshake do not
support query, and always reply with handshake negotiation.  If we send
`IntiatorAndResponder` we will receive back the negotiated version and
but the diffusion mode flag will be the original flag of the server.  We
risk that if the node is supporting `V10` that it will start using the
connection as duplex one, but this shouldn't really matter as the
ping client will anyway close the connection just after receiving
handshake response.
Print query result as the last message, in case of negotiation error
always print received versions from the remote host.
@coot coot force-pushed the coot/ping-0.2.0.3 branch from 1a59bb3 to 71375de Compare June 9, 2023 11:50
@karknu
Copy link
Contributor

karknu commented Jun 9, 2023

LGTM.

@coot coot enabled auto-merge June 9, 2023 11:58
@coot coot added this pull request to the merge queue Jun 9, 2023
Merged via the queue into master with commit 569253b Jun 9, 2023
@coot coot deleted the coot/ping-0.2.0.3 branch June 9, 2023 13:19
@coot coot added networking cardano-ping Iessues / PRs related to cardano-ping labels Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cardano-ping Iessues / PRs related to cardano-ping
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants