Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Don't ban peers for small duplicate requests #11084

Conversation

nathanwhit
Copy link
Contributor

This PR permits duplicate block requests from peers if the request is "small", defined as when only the block header and justification are requested. A separate, milder reputation penalty is issued for those duplicates. This prevents peers from being banned for (e.g.) duplicate ancestor search requests, which can occur if a peer has disconnected and reconnected. This is one of the solutions discussed in #10794.

Should resolve #10794.

@bkchr bkchr added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Mar 21, 2022
@bkchr bkchr requested a review from arkpar March 21, 2022 22:01
@arkpar
Copy link
Member

arkpar commented Mar 22, 2022

bot merge

@paritytech-processbot paritytech-processbot bot merged commit ec0258e into paritytech:master Mar 22, 2022
grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
* Don't ban peers for small duplicate requests

* Address review comment
grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
* Don't ban peers for small duplicate requests

* Address review comment
grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
* Don't ban peers for small duplicate requests

* Address review comment
DaviRain-Su pushed a commit to octopus-network/substrate that referenced this pull request Aug 23, 2022
* Don't ban peers for small duplicate requests

* Address review comment
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* Don't ban peers for small duplicate requests

* Address review comment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Honest peer banning after set_sync_fork_request
3 participants