Skip to content

Commit e582ad9

Browse files
committed
Move L2 gas limit operational docs from maintain_sequencer.md into
upgrades.md under the v10→v11 section and remove the standalone file
1 parent d640e7e commit e582ad9

File tree

3 files changed

+18
-24
lines changed

3 files changed

+18
-24
lines changed

docs/SUMMARY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
- [Blockscout for ethrex L2](./l2/interacting/blockscout.md)
7474
- [L2 Hub](./l2/interacting/l2_hub.md)
7575
- [Shared Bridge](./l2/interacting/shared_bridge.md)
76-
- [Maintain the sequencer](./l2/interacting/maintain_sequencer.md)
7776
- [Fundamentals](./l2/fundamentals/README.md)
7877
- [State diffs](./l2/fundamentals/state_diffs.md)
7978
- [Block vs StateDiff](./l2/fundamentals/block_vs_state_diff_measurements.md)

docs/l2/deployment/upgrades.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,21 @@ The contract must not be unpaused until `l2GasLimit` is set to a valid value. Ot
104104
#### CLI flag removed
105105

106106
The `--block-producer.block-gas-limit` flag has been removed. The sequencer now reads the gas limit from the `CommonBridge` contract on startup. Update any scripts or deployment configurations that use this flag.
107+
108+
#### Viewing the current gas limit
109+
110+
```shell
111+
rex call <BRIDGE_ADDRESS> "l2GasLimit()" --rpc-url <L1_RPC_URL>
112+
```
113+
114+
#### Updating the gas limit
115+
116+
Only the bridge owner can update the gas limit:
117+
118+
```shell
119+
rex send <BRIDGE_ADDRESS> "setL2GasLimit(uint256)" <NEW_GAS_LIMIT> \
120+
--private-key <OWNER_PRIVATE_KEY> \
121+
--rpc-url <L1_RPC_URL>
122+
```
123+
124+
After updating the on-chain value, restart the sequencer for it to take effect. Until the restart, the sequencer continues using the previous gas limit, which may cause a temporary mismatch with the on-chain value.

docs/l2/interacting/maintain_sequencer.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)