Skip to content

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
Copy link

bors bot commented Aug 18, 2020

@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.

2 participants