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

core/vote: Prevent vote pool DOS #684

Merged
merged 3 commits into from
Feb 13, 2025
Merged

core/vote: Prevent vote pool DOS #684

merged 3 commits into from
Feb 13, 2025

Conversation

chiphamskymavis
Copy link
Contributor

No description provided.

@chiphamskymavis chiphamskymavis marked this pull request as ready for review February 4, 2025 11:14
Copy link
Collaborator

@minh-bq minh-bq left a comment

Choose a reason for hiding this comment

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

It's a quite interesting solution 👍

core/vote/vote_pool.go Outdated Show resolved Hide resolved
default:
log.Debug("Failed to put vote into vote pool")
}
pool.votesCh <- &voteWithPeer{vote: vote, peer: peer}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Behavior change from non-blocking but drop message to wait for channel available

@minh-bq minh-bq merged commit 3d30c05 into master Feb 13, 2025
1 check passed
@minh-bq minh-bq deleted the prevent-vote-pool-ddos branch February 13, 2025 06:43
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