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

feat: op-batcher auto switch to economic DA type #209

Merged
merged 15 commits into from
Jun 24, 2024
Merged

Conversation

bnoieh
Copy link
Contributor

@bnoieh bnoieh commented Jun 11, 2024

Description

new feature: op-batcher auto switch to economic DA type

Rationale

As blob gas price may increase to make blobTx more expensive than calldataTx, currently op-batcher could not choose economic DA type automatically, this PR filled the gap.

Example

n/a

Changes

  1. add new value auto to flag --data-availability-type, which will enable op-batcher automatically choose DA type
  2. change default value of flag --txmgr.blob-gas-price-limit from 100gwei to 0, which will disable blob-gas-price-limit by default.

op-batcher/metrics/metrics.go Outdated Show resolved Hide resolved
op-batcher/batcher/service.go Show resolved Hide resolved
welkin22
welkin22 previously approved these changes Jun 18, 2024
Copy link
Contributor

@welkin22 welkin22 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@welkin22 welkin22 left a comment

Choose a reason for hiding this comment

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

LGTM

@owen-reorg owen-reorg merged commit 760663a into develop Jun 24, 2024
14 checks passed
@sebastianst
Copy link
Contributor

Note that this now got implemented upstream at ethereum-optimism/optimism#11219 @bnoieh

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.

5 participants