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

Dont move incompatible peers to live sync too early. #2679

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

viquezclaudio
Copy link
Member

If peers are classified as incompatible and moved to live sync before the validity sync is complete, this creates issues where missing blocks can be pushed from the state sync, even though, we cannot verify the history root yet.
With this change, we first complete the validity sync and after that, we move the incompatible peers to live sync.

Fixes #2675

...

This fixes #2675 .

Pull request checklist

  • All tests pass. The project builds and runs.
  • I have resolved any merge conflicts.
  • I have resolved all clippy and rustfmt warnings.

@viquezclaudio viquezclaudio force-pushed the viquezcl/sync_fix branch 2 times, most recently from b79d547 to 2630b3f Compare June 25, 2024 07:30
If peers are classified as incompatible and moved to live sync before the validity sync is complete,
this creates issues where missing blocks can be pushed from the state sync, even though,
we cannot verify the history root yet.
With this change, we first complete the validity sync and after that, we move the incompatible peers to live sync.
@jsdanielh jsdanielh force-pushed the viquezcl/sync_fix branch from 2e8bc71 to 5154c54 Compare June 25, 2024 11:26
@jsdanielh jsdanielh merged commit 5154c54 into albatross Jun 25, 2024
6 checks passed
@jsdanielh jsdanielh deleted the viquezcl/sync_fix branch June 25, 2024 12:44
@jsdanielh jsdanielh added this to the Nimiq PoS Mainnet milestone Jul 12, 2024
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.

Missing blocks are tried to be pushed when the state root can not be verfied yet.
3 participants