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

Add MMR data verification. #3037

Open
wants to merge 2 commits into
base: add-domain-snap-sync-algorithm
Choose a base branch
from

Conversation

shamil-gadelshin
Copy link
Member

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

This PR adds verification to the MMR data acquired during the domain snap sync. The idea is to collect the received data in a similar structure MMR as the actual pallet does and compare calculated root with the MMR root from the downloaded state using the runtime API call. The block number for the runtime API call is the target block number for the state download.

The code worked in the local tests when all domain snap-sync components are enabled.

Code contributor checklist:

Copy link
Contributor

@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 to me, but I'm missing some context for this code.

@shamil-gadelshin shamil-gadelshin marked this pull request as ready for review September 20, 2024 11:17
Copy link
Contributor

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

Extra commits look good to me.

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