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 policy of neighbor message sending #1510

Merged
merged 2 commits into from
Mar 7, 2023
Merged

Conversation

xDimon
Copy link
Member

@xDimon xDimon commented Mar 6, 2023

Referenced issues

Resolves #1508

Description of the Change

Broadcast neighbor-message for all non-light-client peers (previous implementation made broadcast only for random lucky peers).
Send neighbor-message for light-client peers only when our voter set is bigger than their.

Benefits

Send (and avoid sending) neighbor-message only when it make sense

Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
@xDimon xDimon requested review from kamilsa and Harrm March 6, 2023 10:18
@xDimon xDimon merged commit 0550003 into master Mar 7, 2023
@xDimon xDimon deleted the fix/grandpa4lightclients branch March 7, 2023 08:29
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.

Update grandpa neighbor messages for light clients
3 participants