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

Fix GetWIPBatch when previous last batch is a forced batch#2214

Merged
agnusmor merged 1 commit intohotfix/v0.1.Xfrom
hotfix/get-wip-batch-fb
Jun 22, 2023
Merged

Fix GetWIPBatch when previous last batch is a forced batch#2214
agnusmor merged 1 commit intohotfix/v0.1.Xfrom
hotfix/get-wip-batch-fb

Conversation

@agnusmor
Copy link
Contributor

@agnusmor agnusmor commented Jun 21, 2023

What does this PR do?

It fixes an error in the GetWIPBatch when trying to decode the txs of the previous last batch. If the previous last batch was a forced batch containing invalid data, the DecodeTxs function failing when trying to decode this data and it returned an error that was managed as a fatal, stopping the execution of the sequencer.

Reviewing the code we figure out that was not needed to call DecodeTxs for the previous last batch as this info is not needed to check if we need to get the last stateroot from the l2block data or from the previous last batch. Removing this DecodeTxs we fix any decode problem with forceb batches in this point

Reviewers

Main reviewers:
@ARR552
@ToniRamirezM
@tclemos

@agnusmor agnusmor added this to the v0.1.3 milestone Jun 21, 2023
@agnusmor agnusmor requested a review from ARR552 June 21, 2023 19:49
@agnusmor agnusmor self-assigned this Jun 21, 2023
@agnusmor agnusmor requested a review from ToniRamirezM as a code owner June 21, 2023 19:49
@cla-bot cla-bot bot added the cla-signed label Jun 21, 2023
@agnusmor agnusmor requested a review from tclemos June 21, 2023 19:54
@agnusmor agnusmor merged commit 6538e3b into hotfix/v0.1.X Jun 22, 2023
@agnusmor agnusmor deleted the hotfix/get-wip-batch-fb branch June 22, 2023 15:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants