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-beta2] P2P: Fix multiple range requests while syncing #291

Merged
merged 6 commits into from
Jun 14, 2024

Conversation

heifner
Copy link
Member

@heifner heifner commented Jun 14, 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.

Resolves #281

@heifner heifner requested review from greg7mdp and linh2931 June 14, 2024 15:16
@heifner heifner added the OCI Work exclusive to OCI team label Jun 14, 2024
@arhag arhag linked an issue Jun 14, 2024 that may be closed by this pull request
@heifner heifner merged commit 702e5a4 into release/1.0-beta2 Jun 14, 2024
36 checks passed
@heifner heifner deleted the GH-281-sync-requests branch June 14, 2024 23:41
@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
4 participants