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

P2P: Fix sync stuck in already syncing #531

Merged
merged 1 commit into from
Aug 14, 2024
Merged

P2P: Fix sync stuck in already syncing #531

merged 1 commit into from
Aug 14, 2024

Conversation

heifner
Copy link
Member

@heifner heifner commented Aug 13, 2024

When rejecting a block we were resetting the sync_source. However, we should only reset the sync_source if that is the peer we are actually syncing from. close() already does the correct check and handles the reset if needed; so just need to remove the reset in rejected_block.

Resolves #530

@heifner heifner added the OCI Work exclusive to OCI team label Aug 13, 2024
@heifner heifner requested review from greg7mdp and linh2931 August 13, 2024 17:45
@heifner heifner merged commit 23e3373 into main Aug 14, 2024
36 checks passed
@heifner heifner deleted the GH-530-sync-stuck branch August 14, 2024 11:39
@ericpassmore
Copy link
Contributor

Note:start
group: STABILITY
category: INTERNALS
summary: Update peer syncing logic to reset sync_source only for connected peers we are currently syncing from.
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.

Test failure: nodeos_startup_catchup_if_lr_test
4 participants