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

don't ban on the first violation #114

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

Davidson-Souza
Copy link
Collaborator

Banning a peer at the first time they misbehave (e.g. timeout a request) might be overaggressive, and lead to us being depleted of utreexo peers.

This commit adds a banscore system. Every time a peer misbehaves we increase that score. If it reaches a certain value, we ban them.

Banning a peer at the first time they misbehave (e.g. timeout a request)
might be overaggressive, and lead to us being depleted of utreexo peers.

This commit adds a banscore system. Every time a peer misbehaves we
increase that score. If it reaches a certain value, we ban them.
@Davidson-Souza Davidson-Souza force-pushed the fix/dont-disconnect-on-first-timeout branch from 07313ec to b395650 Compare January 3, 2024 20:09
@Davidson-Souza Davidson-Souza merged commit 9661889 into master Jan 3, 2024
6 checks passed
@Davidson-Souza Davidson-Souza deleted the fix/dont-disconnect-on-first-timeout branch January 8, 2024 15:50
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.

1 participant