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: Fix multiple range requests while syncing #296

Merged
merged 10 commits into from
Jun 15, 2024

Conversation

heifner
Copy link
Member

@heifner heifner commented Jun 15, 2024

Since blocks are processed immediately into the fork database when received, there is no longer any reason to request ahead of the existing range. Under normal circumstances a node will receive blocks from its peer and process them into the fork database. While those blocks are being applied additional blocks can be requested from the network. Care is taken to make sure that the fork database does not out run the chain head by more than sync-fetch-span.

Merges release/1.0-beta3 into main including #291 & #294

Resolves #281

@heifner heifner requested review from greg7mdp and linh2931 June 15, 2024 00:40
@heifner heifner added the OCI Work exclusive to OCI team label Jun 15, 2024
@heifner heifner merged commit 239ff40 into main Jun 15, 2024
36 checks passed
@heifner heifner deleted the GH-281-sync-requests-main branch June 15, 2024 12:48
@ericpassmore
Copy link
Contributor

Note:start
group: STABILITY
category: INTERNALS
summary: More efficient P2P eliminating multiple requests for the same range of blocks.
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: Large set of requests for same range of blocks
5 participants