❗ It is strongly recommended for all chain operators to upgrade to this release.
Highlights
Batcher Sequencer Throttling (ethereum-optimism/op-geth#421 #12735)
This release contains a new batcher-driven sequencer-throttling control loop. This is to avoid sudden spikes in L1 DA-usage consuming too much available gas and causing a backlog in batcher transactions. The batcher can throttle the sequencer’s data throughput instantly when it sees too much batcher data built up.
🎛️ There are two throttling knobs:
- transaction L1 data throttling, which skips individual transactions whose estimated compressed L1 DA usage goes over a certain threshold, and
- block L1 data throttling, which caps a block’s estimated total L1 DA usage and leads to not including transactions during block building that would move the block’s L1 DA usage past a certain threshold.
Upgrade path
This new feature is enabled by default and requires running op-geth version v1.101411.1
or later. It can be disabled by setting --throttle-interval
to 0
. The sequencer's op-geth node has to be updated first, before updating the batcher, so that the new required RPC is available at the time of the batcher restart.
op-conductor
It is required to upgrade to op-conductor/v0.2.0 if you are using conductor’s leader-aware rpc proxy feature. This conductor release includes support for the miner_setMaxDASize
op-geth rpc proxy.
Configuration
Batcher
The batcher can be configures with the following new flags and default parameters:
- interval at which throttling operations happen (besides when loading an L2 block in the batcher) via
--throttle-interval
:2s
(env varOP_BATCHER_THROTTLE_INTERVAL
)- This can be set to zero to completely disable this feature. Since it’s set to 2s by default, the feature is enabled by default.
- backlog of pending block bytes beyond which the batcher will enable throttling on the sequencer via
--throttle-threshold
:1_000_000
(batcher backlog of 1MB of data to batch)- env var
OP_BATCHER_THROTTLE_THRESHOLD
- env var
- individual tx size throttling via
--throttle-tx-size
:300
(estimated compressed bytes)- env var
OP_BATCHER_THROTTLE_TX_SIZE
- env var
- block size throttling via
--throttle-block-size
:21_000
(estimated total compressed bytes, at least 70 transactions per block of up to 300 compressed bytes each)- env var
OP_BATCHER_THROTTLE_BLOCK_SIZE
- env var
- block size throttling that’s always active via
--throttle-always-block-size
:130_000
- env var
OP_BATCHER_THROTTLE_ALWAYS_BLOCK_SIZE
- This block size limit is enforced on the sequencer at all times, even if there isn’t any backlog in the batcher. Normal network usage shouldn’t be impacted by this. This is to prevent a too fast build up of data to batch.
- env var
If the batcher at startup has throttling enabled and the sequencer’s op-geth node to which it’s talking hasn’t the miner_setMaxDASize
RPC enabled, it will fail with an error message like
lvl=warn msg="Served miner_setMaxDASize" reqid=1 duration=11.22µs err="the method miner_setMaxDASize does not exist/is not available"
In this case, make sure the miner
API namespace is enabled for the correct transport protocol (HTTP or WS), see next paragraph.
Sequencer
The new RPC miner_setMaxDASize
is available in op-geth since v1.101411.1
. It has to be enabled by adding the miner
namespace to the correct API flags, like
GETH_HTTP_API: web3,debug,eth,txpool,net,miner
GETH_WS_API: debug,eth,txpool,net,miner
It is recommended to add it to both, HTTP and WS.
Other
- A bug in the sequencer is fixed that may cause derivation to stall on flaky L1 connections (#12258).
- This release also contains many incremental changes regarding Holocene and Interop feature development.
What's Changed
- Interop: Update Inputs (rebased) by @axelKingsley in #12204
- [batcher] derive.ChannelOut factory by @mdehoog in #12344
- op-service: Add optional headers to the signer client by @trianglesphere in #12407
- [batcher] Cleanup batcher channel inclusion block logic by @mdehoog in #12363
- [batcher] Rename channel receiver by @mdehoog in #12453
- op-node/rollup/derive: Add Holocene Channel Assembler by @sebastianst in #12334
- op-node/rollup/sequencing: Fix temporary engine error handling by @sebastianst in #12258
- feat(op-batcher): wait for pre-genesis RPC request loop by @jsvisa in #12383
- op-node: Alphabetize CLI network lists by @mbaxter in #12522
- Holocene: initial op-node support for configurable eip-1559 params by @roberto-bayardo in #12497
- Holocene: SystemConfig contract changes for updating EIP-1559 params by @roberto-bayardo in #12498
- op-node/rollup/derive: Holocene Batch Stage by @sebastianst in #12417
- Holocene: e2e test for Holocene's configurable eip-1559 params by @roberto-bayardo in #12499
- rollup-client: Increase call timeouts in CI by @ajsutton in #12561
- op-service: Add omitempty to EIP1559Params by @mslipper in #12582
- chore(op-service): Add missing fields to blob API types by @clabby in #12602
- op-service/client: rm unnecessary type infer arguments by @jsvisa in #12651
- Interop: Fix DerivedFrom Client Signature by @axelKingsley in #12661
- op-node: disable finality based on local-safe when interop is active by @protolambda in #12690
- op-node/rollup/derive: Implement pipeline stage multiplexing by @sebastianst in #12506
- op-node/rollup: Implement Holocene invalid payload attributes handling by @sebastianst in #12621
- op-node/rollup: Promote all attributes to safe post-Holocene by @sebastianst in #12724
- Interop: Add error case for parent of start of database by @axelKingsley in #12818
- interop: Handle first L1 Parent Ref in CandidateCrossSafe by @axelKingsley in #12830
- interop: correct error in prior WithParent commit by @axelKingsley in #12832
- interop: Handle ErrParentToFirst from PreviousDerivedFrom by @axelKingsley in #12833
- op-batcher: Increase the pending_blocks metric when a channel times out by @geoknee in #12810
- op-batcher: control loop to throttle DA usage by @roberto-bayardo in #12735
- op-batcher: Enable throttling by default, shutdown on broken RPC by @sebastianst in #12840
- interop: Fix AtLeastAsSafe ; Geth Mempool Filter E2E Test by @axelKingsley in #12823
- [Batcher] Fix memory leak, reverse prepended blocks by @mdehoog in #12874
- op-conductor,op-node: allow system to select port, make op-node wait for conductor endpoint by @protolambda in #12863
New Contributors (full monorepo)
- @qizhou made their first contribution in #12310
- @gotzenx made their first contribution in #12514
- @meyer9 made their first contribution in #12576
- @klein818 made their first contribution in #11812
- @ashutoshvarma made their first contribution in #12679
- @ControlCplusControlV made their first contribution in #12727
- @sigma made their first contribution in #12856
Full Changelog: v1.9.4...v1.9.5
🚢 Docker Images:
https://us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node:v1.9.5
https://us-docker.pkg.dev/oplabs-tools-artifacts/images/op-batcher:v1.9.5
https://us-docker.pkg.dev/oplabs-tools-artifacts/images/op-proposer:v1.9.5