Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

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

Merged
agnusmor merged 1 commit intorelease/v0.4.1from
feature/finalizer-store-LER
Nov 22, 2023
Merged

feature: storing LER in state.batch on successful transaction processing#2658
agnusmor merged 1 commit intorelease/v0.4.1from
feature/finalizer-store-LER

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

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>
@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 requested a review from dpunish3r as a code owner November 22, 2023 13:30
@agnusmor agnusmor merged commit d5b6c71 into release/v0.4.1 Nov 22, 2023
@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
…ing (#2658)

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>
@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
…ing (#2658)

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>
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 <nikolai_nedkov@yahoo.com>

* fix doc

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>
Co-authored-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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