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(p2p): download messages from higher round #261

Merged

Conversation

sebastijankuzner
Copy link
Contributor

@sebastijankuzner sebastijankuzner commented Oct 3, 2023

Summary

Download prevotes and precommits form highest round possible. If node have highest round with +1/3 prevotes, then this round is returned to allow downloading node to increase the round. If round with <1/3 prevotes is found than return previous round or requested round data.

Node will try to download messages from the highest round possible. This is separate mode. First mode is to download messages from the node with the same round.

Remove canDownload* checks from header and move it under downloaders. Fix proposal downloader allow multiple rounds.

Checklist

  • Ready to be merged

@sebastijankuzner sebastijankuzner marked this pull request as draft October 3, 2023 19:09
@sebastijankuzner sebastijankuzner marked this pull request as ready for review October 4, 2023 14:13
@sebastijankuzner sebastijankuzner merged commit 9af1ac1 into develop Oct 4, 2023
@sebastijankuzner sebastijankuzner deleted the fix/p2p/download-messages-if-round-is-higher branch October 4, 2023 14:43
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.

1 participant