Skip to content

fix(batch-submitter): clear state root batches#2006

Merged
cfromknecht merged 1 commit intoethereum-optimism:developfrom
cfromknecht:clear-state-batch-pending-tx
Jan 14, 2022
Merged

fix(batch-submitter): clear state root batches#2006
cfromknecht merged 1 commit intoethereum-optimism:developfrom
cfromknecht:clear-state-batch-pending-tx

Conversation

@cfromknecht
Copy link
Contributor

Description
Fixes a bug where both the sequencer and proposer main loops were
attempting to clear the pending transactions from the batch-tx
submitter's wallet. The impact is that we may have been overspending on
fees due to conflicting/reverting state batches. However the impact
overall should be minor given the relative size of state batches in
comparison to tx-batches.

Metadata

  • Fixes ENG-1890

@changeset-bot
Copy link

changeset-bot bot commented Jan 13, 2022

🦋 Changeset detected

Latest commit: 9fe09f7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@eth-optimism/batch-submitter Patch

Not sure what this means? Click here to learn what changesets are.

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

@codecov-commenter
Copy link

codecov-commenter commented Jan 13, 2022

Codecov Report

Merging #2006 (3777101) into develop (6749ab3) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #2006   +/-   ##
========================================
  Coverage    74.58%   74.58%           
========================================
  Files           79       79           
  Lines         2554     2554           
  Branches       401      401           
========================================
  Hits          1905     1905           
  Misses         649      649           
Flag Coverage Δ
batch-submitter 62.50% <ø> (ø)
contracts 90.48% <ø> (ø)
core-utils 57.50% <ø> (ø)
data-transport-layer 38.64% <ø> (ø)
message-relayer 70.86% <ø> (ø)
sdk 88.38% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6749ab3...3777101. Read the comment docs.

@cfromknecht cfromknecht force-pushed the clear-state-batch-pending-tx branch from 3777101 to 3be6512 Compare January 13, 2022 20:06
Copy link
Contributor

@karlfloersch karlfloersch left a comment

Choose a reason for hiding this comment

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

LGTM! Nice catch 😅😭

Fixes a bug where both the sequencer and proposer main loops were
attempting to clear the pending transactions from the batch-tx
submitter's wallet. The impact is that we may have been overspending on
fees due to conflicting/reverting state batches. However the impact
overall should be minor given the relative size of state batches in
comparison to tx-batches.
@cfromknecht cfromknecht force-pushed the clear-state-batch-pending-tx branch from 3be6512 to 9fe09f7 Compare January 14, 2022 19:15
@cfromknecht cfromknecht merged commit e5ba9b1 into ethereum-optimism:develop Jan 14, 2022
@cfromknecht cfromknecht deleted the clear-state-batch-pending-tx branch January 14, 2022 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-op-batcher Area: op-batcher

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants