Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

fix: two-way handshake #25

Merged
merged 1 commit into from
Oct 2, 2023
Merged

fix: two-way handshake #25

merged 1 commit into from
Oct 2, 2023

Conversation

aloknerurkar
Copy link
Contributor

@aloknerurkar aloknerurkar commented Oct 2, 2023

On the originator side, the discovery protocol tries to send the peers before the handshake was able to complete. This was because we only exchanged 3 msgs. So the originator had to send an extra msg and hence it could not approve the peer before it got the discovery msg.
With this PR we do two-way msging which ensures the originator gets the response from the other peer before the process is complete.

@aloknerurkar aloknerurkar merged commit 094969b into main Oct 2, 2023
@aloknerurkar aloknerurkar deleted the handshake-fix.0 branch October 5, 2023 06:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants