-
Notifications
You must be signed in to change notification settings - Fork 180
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] Simplifies RPC inspection misbehavior notification handling #5398
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #5398 +/- ##
==========================================
- Coverage 56.02% 56.01% -0.02%
==========================================
Files 1026 1026
Lines 99859 99815 -44
==========================================
- Hits 55944 55909 -35
+ Misses 39618 39611 -7
+ Partials 4297 4295 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
// TODO: we have to add a metric for this case. | ||
// TODO: we should not have deduplication for this case, as we need to penalize the peer for each misbehaviour, we need to add a nonce to the notification. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are there issues for these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR significantly streamlines GossipSub misbehavior notification handling. Previously, notifications passed through
ControlMsgValidationInspector
,GossipSubInspectorNotifDistributor
, thenGossipSubAppSpecificScoreRegistry
. Now, we've removedGossipSubInspectorNotifDistributor
, merging its functionality intoGossipSubAppSpecificScoreRegistry
, reducing the process to a direct flow fromControlMsgValidationInspector
toGossipSubAppSpecificScoreRegistry
. This change not only simplifies the notification handling process but also makes it easier to debug and understand. It eliminates unnecessary layers and abstractions, enhancing the efficiency of the inspector suite by fully integrating it withControlMsgValidationInspector
.