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

[Merged by Bors] - Purge out-dated head chains on chain completion #1538

Closed
wants to merge 2 commits into from

Conversation

AgeManning
Copy link
Member

Description

There can be many head chains queued up to complete. Currently we try and process all of these to completion before we consider the node synced.

In a chaotic network, there can be many of these and processing them to completion can be very expensive and slow. This PR removes any non-syncing head chains from the queue, and re-status's the peers. If, after we have synced to head on one chain, there is still a valid head chain to download, it will be re-established once the status has been returned.

This should assist with getting nodes to sync on medalla faster.

@AgeManning AgeManning changed the title Purge out-dated head on chain completion Purge out-dated head chains on chain completion Aug 18, 2020
@AgeManning
Copy link
Member Author

bors r+

bors bot pushed a commit that referenced this pull request Aug 18, 2020
## Description

There can be many head chains queued up to complete. Currently we try and process all of these to completion before we consider the node synced. 

In a chaotic network, there can be many of these and processing them to completion can be very expensive and slow. This PR removes any non-syncing head chains from the queue, and re-status's the peers. If, after we have synced to head on one chain, there is still a valid head chain to download, it will be re-established once the status has been returned. 

This should assist with getting nodes to sync on medalla faster.
@bors bors bot changed the title Purge out-dated head chains on chain completion [Merged by Bors] - Purge out-dated head chains on chain completion Aug 18, 2020
@bors bors bot closed this Aug 18, 2020
@AgeManning AgeManning deleted the head-sync-clear branch August 18, 2020 12:19
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.

1 participant