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

fix(header/p2p): add peerScore decreasing in case of failed request #1603

Merged
merged 10 commits into from
Jan 18, 2023

Conversation

vgonkivs
Copy link
Member

@vgonkivs vgonkivs commented Jan 16, 2023

Overview

Resolves #1607

Checklist

  • New and updated code has appropriate documentation
  • New and updated code has new and/or updated testing
  • Required CI checks are passing
  • Visual proof for any user facing features like CLI or documentation updates
  • Linked issues closed with keywords

@codecov-commenter
Copy link

codecov-commenter commented Jan 16, 2023

Codecov Report

Merging #1603 (a562652) into main (2d6d138) will increase coverage by 0.07%.
The diff coverage is 81.08%.

@@            Coverage Diff             @@
##             main    #1603      +/-   ##
==========================================
+ Coverage   54.08%   54.16%   +0.07%     
==========================================
  Files         222      222              
  Lines       14411    14425      +14     
==========================================
+ Hits         7794     7813      +19     
+ Misses       5758     5752       -6     
- Partials      859      860       +1     
Impacted Files Coverage Δ
header/p2p/options.go 63.06% <50.00%> (-1.99%) ⬇️
header/p2p/exchange.go 66.25% <100.00%> (ø)
header/p2p/peer_stats.go 97.18% <100.00%> (+0.21%) ⬆️
header/p2p/server.go 74.21% <100.00%> (ø)
header/p2p/session.go 87.83% <100.00%> (+7.43%) ⬆️
nodebuilder/header/module.go 97.72% <100.00%> (+0.02%) ⬆️
share/eds/byzantine/bad_encoding.go 66.00% <0.00%> (-3.00%) ⬇️
header/p2p/helpers.go 67.39% <0.00%> (+4.34%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

header/p2p/options.go Outdated Show resolved Hide resolved
header/p2p/options.go Outdated Show resolved Hide resolved
header/p2p/peer_stats.go Show resolved Hide resolved
whatsa4
whatsa4 previously approved these changes Jan 16, 2023
@vgonkivs vgonkivs requested a review from Wondertan January 17, 2023 12:04
header/p2p/exchange_test.go Outdated Show resolved Hide resolved
header/p2p/exchange_test.go Outdated Show resolved Hide resolved
header/p2p/exchange_test.go Outdated Show resolved Hide resolved
header/p2p/session.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@distractedm1nd distractedm1nd left a comment

Choose a reason for hiding this comment

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

have the same question as rene, otherwise just comment nits

header/p2p/options.go Outdated Show resolved Hide resolved
header/p2p/options.go Outdated Show resolved Hide resolved
renaynay
renaynay previously approved these changes Jan 18, 2023
header/p2p/session.go Outdated Show resolved Hide resolved
renaynay
renaynay previously approved these changes Jan 18, 2023
header/p2p/options.go Outdated Show resolved Hide resolved
header/p2p/peer_stats.go Show resolved Hide resolved
@Bidon15 Bidon15 requested a review from whatsa4 January 18, 2023 11:18
@vgonkivs vgonkivs merged commit 534ec0d into celestiaorg:main Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

improvement(header/p2p): add request timeout param in headerEx
6 participants