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

Smooth out sync-to-tip #3170

Draft
wants to merge 3 commits into
base: mainnet-staging
Choose a base branch
from
Draft

Smooth out sync-to-tip #3170

wants to merge 3 commits into from

Conversation

raychu86
Copy link
Contributor

Motivation

This PR allows syncing nodes to start processing peer certificates slightly earlier. Previously, the syncing node needed to be synced up in order to be processing incoming batch certificates. Which puts the node behind all the peers, who should have already constructed new rounds past the last commit. This causes a cycle of lagging just out of reach of the latest round and preventing the node from quickly rejoining consensus. Breaking the cycle relies on the node and message timing such that it can fetch the certificates before new ones can be formed on the network.

The change here allows the node to start processing certificates 1 block earlier, in preparation of reaching tip.

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.

None yet

1 participant