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

Fix stateroot mismatch bug during resequencing #1754

Open
wants to merge 2 commits into
base: zkevm
Choose a base branch
from

Conversation

KyrinCode
Copy link

Fixes #1740

Original resequencing logic is to get l1infoupdateindex from datastream and use this index to get corresponding l1infoupdate. However, when replaying mainnet data from X Layer mainnet, I found that the index->ger is not consistent in datastream and hermezdb. As long as there is a l1info update, a mismatch will occur. I think the inconsistency itself is also a bug of implementation, but here I just use ger to get l1infoupdate from hermezdb instead.

Copy link

cla-bot bot commented Feb 14, 2025

We require contributors/corporates @KyrinCode to read our Contributor License Agreement, please check the Individual CLA document/Corporate CLA document

@cla-bot cla-bot bot added the cla-signed label Feb 25, 2025
@revitteth
Copy link
Collaborator

@KyrinCode please sign commits. Rebase on zkevm of your PRs will also allow unwind tests to pass :)

@KyrinCode KyrinCode force-pushed the kyrin/fix-resequence-mismatch branch from d21cbc3 to e1b7eef Compare February 26, 2025 09:35
@KyrinCode KyrinCode force-pushed the kyrin/fix-resequence-mismatch branch from e1b7eef to fcd1579 Compare February 26, 2025 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Problem] Mismatch occurs when resequencing using ReadBatches() from datastream.
2 participants