bnb-chain / opbnb

MIT License
403 stars 162 forks source link

op-batcher: optimize tx submitting and add metrics #195

Closed bnoieh closed 3 months ago

bnoieh commented 3 months ago

Description

This PR optimize batcher tx submitting logic, and add some metrics

Rationale

Current batcher has some issue of tx submitting:

  1. blob base fee is not right
  2. did not handle nonce too high error from l1 blob tx pool

    Example

n/a

Changes

  1. use raw blob base fee from L1 instead
  2. handle nonce too high error from l1 blob tx pool
  3. add flag --txmgr.blob-gas-price-limit to limit the maximum gas price of submitted tx
  4. add blob_base_fee and blobs_number metrics