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

CAD-3444 handshake changes from p2p-master #3370

Merged
merged 7 commits into from
Sep 23, 2021
Merged

Conversation

coot
Copy link
Contributor

@coot coot commented Sep 20, 2021

  • handshake codec
  • handshake: simplify types of client / server
  • handshake: resiliant for simultanous open
  • handshake: refactor the codec
  • handshake: added test for a simultaneous open connections
  • handshake: updated network-spec
  • handshake: remove versioned application from HandshakeArguments

@coot coot added networking handshake Issues/PRs related to the handshake negotation labels Sep 20, 2021
@coot coot requested a review from dcoutts September 20, 2021 13:33
@coot coot changed the title CAD-34444 handshake changes from p2p-master CAD-3444 handshake changes from p2p-master Sep 20, 2021
Copy link
Contributor

@karknu karknu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

The following two changes make handshake codec behave the same way as
all the other codecs:

* make handshake decoder more strict: also check length of encoded data;
* formatting of decoder errors
Unify the error type for handshake client and server.
Move decodeVersions to top level, next to encodeVersions.
This makes it easier to use HandshakeArguments in Diffusion
@coot
Copy link
Contributor Author

coot commented Sep 23, 2021

bors merge

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Sep 23, 2021

@iohk-bors iohk-bors bot merged commit 8a16ac3 into master Sep 23, 2021
@iohk-bors iohk-bors bot deleted the coot/p2p-handshake branch September 23, 2021 10:48
-- received as a copy of 'MsgProposeVersions' in a simultanous open
-- scenario.
--
MsgProposeVersions'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MsgProposeVersionsSimultaneousOpen

@coot coot mentioned this pull request Oct 5, 2021
iohk-bors bot added a commit that referenced this pull request Oct 7, 2021
3408: P2P review of merged PRs r=coot a=coot

* #3369
* #3370

- snocket: move bang patterns to the top of the recursive call
- snocket: fixed some typos
- snocket: remote path for local sockets
- handshake: renamed MsgProposeVersions' as MsgReplyVersions
- handshake: test that acceptOrRefuse is symmetric
- handshake: fixed some typos
- handshake: implement more properties
- handshake: updated documentation


3414: [CAD-3383] Show progress of --store-ledger every 1000 blocks r=EncodePanda a=EncodePanda



Co-authored-by: Marcin Szamotulski <profunctor@pm.me>
Co-authored-by: EncodePanda <paul.szulc@gmail.com>
@coot coot added the peer2peer label Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
handshake Issues/PRs related to the handshake negotation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants