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

Use ConnectivityEvent::Misbehaved to report unexpected handshakes #1245

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

ImplOfAnImpl
Copy link
Contributor

This applies a TODO about ConnectivityEvent::Misbehaved being unused and unexpected Handshake messages not being reported to PeerManager.

I also had to address the issue with spurious failures of tests in p2p/src/tests due to a test exiting too early. To fix this I introduced the test "Observer" for PeerManager, so that tests can now wait for a notification to occur and only then start checking for expected conditions.

@ImplOfAnImpl ImplOfAnImpl force-pushed the misbehaved_on_unexpected_handshake branch from d96dc62 to afbfd6e Compare September 29, 2023 18:38
Base automatically changed from p2p_crawler_peers_ban to master October 2, 2023 12:29
@ImplOfAnImpl ImplOfAnImpl merged commit 49d42d8 into master Oct 2, 2023
@ImplOfAnImpl ImplOfAnImpl deleted the misbehaved_on_unexpected_handshake branch October 2, 2023 12:30
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.

2 participants