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

[Stress Test] Check if the number of peers received is less than the amount we expect #3103

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

vicsn
Copy link
Collaborator

@vicsn vicsn commented Feb 19, 2024

Motivation

It makes sense to drop messages which are clearly violating our software and may be a DoS vector. This is optional and defense in depth.

Test Plan

Found while defining a stress test for malicious PeerResponse attack vectors (this will not be public).

@vicsn vicsn requested a review from ljedrz February 19, 2024 13:51
Copy link
Collaborator

@ljedrz ljedrz left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@howardwu howardwu changed the title Check if the number of peers received is less than the amount we expect [Fix] Check if the number of peers received is less than the amount we expect Feb 20, 2024
@howardwu howardwu changed the title [Fix] Check if the number of peers received is less than the amount we expect [Stress Test] Check if the number of peers received is less than the amount we expect Feb 20, 2024
@howardwu howardwu merged commit f46d258 into mainnet Feb 20, 2024
23 of 24 checks passed
@howardwu howardwu deleted the limit_peer_response branch February 20, 2024 19: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.

3 participants