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

feature: storing LER in state.batch on successful transaction processing #2658

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

Psykepro
Copy link
Contributor

Closes #2441.

What does this PR do?

Issue Fixed:

  • Addressed the issue where the LocalExitRoot is not updated correctly when a WIP batch with transactions is loaded after a Sequencer restart and then closed without adding any new transactions. This led to the LocalExitRoot being stored as null, causing data inconsistencies.

Changes Introduced:

  • New Function: Added a new function named UpdateBatchL2DataAndLER to PostgresStorage.
  • Functionality: The new function handles the LocalExitRoot to ensure it's updated appropriately, preventing it from being stored as null even after a sequencer restart.

Reviewers

@Psykepro Psykepro added this to the v0.5.0 milestone Oct 13, 2023
@Psykepro Psykepro self-assigned this Oct 13, 2023
@cla-bot cla-bot bot added the cla-signed label Oct 13, 2023
@agnusmor agnusmor assigned agnusmor and unassigned Psykepro Oct 23, 2023
@agnusmor agnusmor modified the milestones: v0.6.0, v0.4.1 Nov 20, 2023
@agnusmor agnusmor changed the base branch from develop to release/v0.4.1 November 22, 2023 13:30
@agnusmor agnusmor merged commit d5b6c71 into release/v0.4.1 Nov 22, 2023
18 checks passed
@agnusmor agnusmor deleted the feature/finalizer-store-LER branch November 22, 2023 13:32
agnusmor pushed a commit that referenced this pull request Nov 22, 2023
@agnusmor agnusmor added the cherry-picked Content has been cherry-picked into a higher version branch label Nov 22, 2023
agnusmor pushed a commit that referenced this pull request Nov 22, 2023
agnusmor added a commit that referenced this pull request Nov 23, 2023
…transaction processing (#2821)

* feature: storing LER in state.batch on successful transaction processing (#2658)

Signed-off-by: Nikolay Nedkov <[email protected]>

* fix doc

---------

Signed-off-by: Nikolay Nedkov <[email protected]>
Co-authored-by: Nikolay Nedkov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-picked Content has been cherry-picked into a higher version branch cla-signed improvement sequencer zkevm-seq-agg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Storage of LocalExitRoot in For Batch Closed After Sequencer Restart
2 participants