bnb-chain / opbnb

MIT License
403 stars 162 forks source link

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

Closed bnoieh closed 2 months ago

bnoieh commented 2 months ago

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.
sebastianst commented 1 month ago

Note that this now got implemented upstream at https://github.com/ethereum-optimism/optimism/pull/11219 @bnoieh