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

[1.0-beta3 -> main] P2P: Prevent syncing from running ahead of chain head #290

Merged
merged 11 commits into from
Jun 14, 2024

Conversation

heifner
Copy link
Member

@heifner heifner commented Jun 14, 2024

P2P syncing was using fork database head for a limited factor on how far ahead to request blocks. With the recent change to ingest blocks quickly into the fork database (AntelopeIO/leap#2385), this allowed the fork database to load hundred of thousands of blocks ahead of chain head.

Use chain head instead of fork database head for sync ahead calculation.

Merges release/1.0-beta3 into main including #282 & #286 & #280

Resolves #278

@heifner heifner requested review from greg7mdp and linh2931 June 14, 2024 01:50
@heifner heifner added the OCI Work exclusive to OCI team label Jun 14, 2024
@heifner heifner merged commit df59ab7 into main Jun 14, 2024
36 checks passed
@heifner heifner deleted the GH-278-p2p-sync-main branch June 14, 2024 11:54
@ericpassmore
Copy link
Contributor

Note:start
group: STABILITY
category: INTERNALS
summary: P2P prevent syncing from running ahead o chain head, use chain head instead of fork database head for sync ahead calculation.
Note:end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

P2P: Syncing into network runs ahead
4 participants