Skip to content

Conversation

hanssv
Copy link
Member

@hanssv hanssv commented Jul 5, 2024

Fixes #4373

The parent cache does/did not really cater for the sync case. It filled up in a rather ad hoc way. This change aims to do the (pre-)filling in a more structured way. It also adds a more specific sync-test; though that one passed even before these changes.

What really should be done is to introduce a worker pool like the node sync has; and this pool should synchronize with the child chain sync progress. But since the epochs and periodically sync is coming structural changes will probably be required, so let's kick that one further down the road 😅.

This PR is supported by the Æternity Foundation.

@hanssv hanssv merged commit 2fef58b into master Jul 9, 2024
@hanssv hanssv deleted the improve_hc_sync_stability branch July 9, 2024 14:07
mitchelli pushed a commit that referenced this pull request Jul 25, 2024
* Make parent chain cache more sync aware

* Unbreak eunit tests

* Please dialyzer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Fix sync of node when too far behind
4 participants