Skip to content

op-node: Fix reset bug in batch queue#3694

Merged
mslipper merged 1 commit intodevelopfrom
jg/bugfix
Oct 17, 2022
Merged

op-node: Fix reset bug in batch queue#3694
mslipper merged 1 commit intodevelopfrom
jg/bugfix

Conversation

@trianglesphere
Copy link
Contributor

Description

The batch queue was using the previous origin when computing if the origin was behind or not. It would then immediately advance it's internal origin to the next origin (confusingly coming from the prev stage). It would take action on the current origin based on out of date data. Specifically, it would not save an origin that should have been saved into the l1Blocks array. This causes errors because the L1 Origin of the safe head would not be present when attempting to derive the next batch after a reset.

Tests

Not tested either in a full reproduction or with unit tests.

Metadata

  • Fixes ENG-2906

@changeset-bot
Copy link

changeset-bot bot commented Oct 12, 2022

⚠️ No Changeset found

Latest commit: c5af4a5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@mergify
Copy link
Contributor

mergify bot commented Oct 12, 2022

This PR changes implementation code, but doesn't include a changeset. Did you forget to add one?

@github-actions github-actions bot added 2-reviewers A-pkg-contracts-bedrock Area: packages/contracts-bedrock labels Oct 14, 2022
Copy link
Contributor

@protolambda protolambda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. A test to reproduce it would be nice to have (or an issue for future test, I think we can cover it with action-testing). And there's an unrelated change in the PR?

@mergify
Copy link
Contributor

mergify bot commented Oct 17, 2022

Hey @trianglesphere! This PR has merge conflicts. Please fix them before continuing review.

@mergify mergify bot added the conflict label Oct 17, 2022
The batch queue was using the previous origin when computing if
the origin was behind or not. It would then immediately advance
it's internal origin to the next origin (confusingly coming from
the `prev` stage). It would take action on the current origin based
on out of date data. Specifically, it would not save an origin that
should have been saved into the l1Blocks array. This causes errors
because the L1 Origin of the safe head would not be present when
attempting to derive the next batch after a reset.
@github-actions github-actions bot removed 2-reviewers A-pkg-contracts-bedrock Area: packages/contracts-bedrock labels Oct 17, 2022
@mslipper mslipper merged commit a88ba67 into develop Oct 17, 2022
@mslipper mslipper deleted the jg/bugfix branch October 17, 2022 18:28
@mergify mergify bot removed the conflict label Oct 17, 2022
This was referenced Oct 17, 2022
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.

3 participants