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

p2p: Don't mark peer as bad in connection handler #4575

Merged
merged 1 commit into from Jan 18, 2020
Merged

Conversation

prestonvanloon
Copy link
Member

It's already handled here:

r.p2p.Peers().IncrementBadResponses(stream.Conn().RemotePeer())

The current implementation might cause the peer to be marked as bad twice and banned quickly.

@prestonvanloon prestonvanloon added the Ready For Review A pull request ready for code review label Jan 18, 2020
@codecov
Copy link

codecov bot commented Jan 18, 2020

Codecov Report

Merging #4575 into master will decrease coverage by 4.79%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master    #4575     +/-   ##
=========================================
- Coverage   47.04%   42.25%   -4.8%     
=========================================
  Files         193      193             
  Lines       13384    13240    -144     
=========================================
- Hits         6297     5594    -703     
- Misses       6043     6683    +640     
+ Partials     1044      963     -81

@nisdas nisdas merged commit 68c1ca7 into master Jan 18, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-bad-peer branch January 18, 2020 04:46
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 24, 2020
cryptomental pushed a commit to cryptomental/prysm that referenced this pull request Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants