Skip to content

Modify MMR sync algorithm. #3025

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
merged 1 commit into from
Sep 17, 2024
Merged

Modify MMR sync algorithm. #3025

merged 1 commit into from
Sep 17, 2024

Conversation

shamil-gadelshin
Copy link
Contributor

@shamil-gadelshin shamil-gadelshin commented Sep 16, 2024

This PR modifies MMR-sync algorithm during its integration in the domain snap sync.

The main change is introducing the target block from which we sync the MMR data, we need this to reflect the fact that we synchronize only MMR data for finalized blocks and there is a lag between archived (accessible via snap-sync) and finalized blocks (MMR-data) in 5 segments of blocks. Additional change was improved error handling.

Relates to #3026

Code contributor checklist:

@shamil-gadelshin
Copy link
Contributor Author

We also need to modify MMR data processing later to address "five segments lag" (FINALIZATION_DEPTH_IN_SEGMENTS constant) by changing finalized blocks to archived blocks in MMR-gadget.

Copy link
Member

@teor2345 teor2345 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Copy link
Member

@NingLin-P NingLin-P left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shamil-gadelshin shamil-gadelshin added this pull request to the merge queue Sep 17, 2024
Merged via the queue into main with commit 3727d07 Sep 17, 2024
9 checks passed
@shamil-gadelshin shamil-gadelshin deleted the modify-mmr-sync branch September 17, 2024 09:24
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.

3 participants