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

[Networking] Relaxes invalid message delivery penalty #5265

Merged
merged 4 commits into from
Jan 22, 2024

Conversation

yhassanzadeh13
Copy link
Contributor

This PR modifies the default penalty for invalid message delivery in GossipSub, initially designed to counter integrity attacks. However, it was found that this penalty also applies to self-originated messages, regardless of their integrity. A known edge case in GossipSub can cause an increase in self-originated messages. This, combined with the high weight of invalid message delivery, can lead to false-positive severe penalties on nodes, potentially causing network partitioning. Therefore, we're adjusting these penalties to accommodate this edge case. Given that the penalty now encompasses both integrity violations and self-originated messages, we're moderating it to better reflect active, sustained attacks rather than occasional minor misbehaviors.

Base automatically changed from yahya/6927-duplicate-ihave-topics to master January 22, 2024 20:35
@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (89594b2) 55.44% compared to head (4ce1643) 49.87%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5265      +/-   ##
==========================================
- Coverage   55.44%   49.87%   -5.57%     
==========================================
  Files         996      190     -806     
  Lines       95786    17043   -78743     
==========================================
- Hits        53108     8501   -44607     
+ Misses      38686     7951   -30735     
+ Partials     3992      591    -3401     
Flag Coverage Δ
unittests 49.87% <ø> (-5.57%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yhassanzadeh13 yhassanzadeh13 added this pull request to the merge queue Jan 22, 2024
Merged via the queue into master with commit f2e20ed Jan 22, 2024
51 checks passed
@yhassanzadeh13 yhassanzadeh13 deleted the yahya/relax-invalid-message-deliveyr branch January 22, 2024 21:55
yhassanzadeh13 added a commit that referenced this pull request Jan 23, 2024
…veyr

[Networking] Relaxes invalid message delivery penalty
yhassanzadeh13 added a commit that referenced this pull request Jan 23, 2024
* Merge branch 'master' into yahya/relax-invalid-message-deliveyr

* Revert "Merge branch 'master' into yahya/relax-invalid-message-deliveyr"

This reverts commit a048b2c.

* Merge pull request #5234 from onflow/yahya/6927-duplicate-ihave-topics

[Networking] Enhance RPC Inspection with Configurable Thresholds and Granular Metrics Collection

* Merge pull request #5265 from onflow/yahya/relax-invalid-message-deliveyr

[Networking] Relaxes invalid message delivery penalty
This pull request was closed.
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.

4 participants