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

Slow peer scoring #556

Merged
merged 6 commits into from
Dec 6, 2023
Merged

Slow peer scoring #556

merged 6 commits into from
Dec 6, 2023

Conversation

AgeManning
Copy link
Member

Description

Implements a way to integrate slow peers into the 1.1 scoring message and also adds a message to inform the application if a peer is dropping messages.

@AgeManning AgeManning merged commit a70bef0 into lighthouse-gossipsub Dec 6, 2023
66 of 68 checks passed
@@ -739,6 +750,14 @@ where
)
.is_err()
{
self.failed_messages.entry(*peer_id).or_default().priority += 1;

Choose a reason for hiding this comment

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

if a peer is in the mesh, and the policy is to drop messages, they will see an incomplete message stream which seems to me like it could lead to an inconsistent view of the universe - ie in a burst of messages, they'll get some, but not others.

For non-mesh-peers, this would be plugged with IHAVE, but not for mesh peers.. thoughts?

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.

2 participants