You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> - The `CommonBridge` and `OnChainProposer` contracts are upgradeable and ownable, with implementations behind proxies initialized during deployment. Replace `COMMON_BRIDGE_OWNER_ADDRESS` and `ON_CHAIN_PROPOSER_OWNER_ADDRESS` with the address of the account you want as the owner. The owner can upgrade implementations or perform administrative actions; for more details, see the Architecture section.
58
59
> - The sequencer components (`L1Committer` and `L1ProofSender`) require funded accounts on the target L1 to advance the network. Replace `L1_COMMITTER_ADDRESS` and `L1_PROOF_SENDER_ADDRESS` with the addresses of those accounts.
59
60
> - Replace `PATH_TO_ENV_FILE` with the path where you want to save the generated environment file. This file contains the deployed contract addresses and other configuration details needed to run the L2 node.
61
+
> - Replace `L2_GAS_LIMIT` with the desired L2 block gas limit (defaults to `30000000`). This value is stored in the `CommonBridge` contract and can be updated later by the bridge owner.
60
62
> - L1 contract deployment uses the `CREATE2` opcode for deterministic addresses. To deploy non-deterministically, include the `--randomize-contract-deployment` flag.
61
63
62
64
## 2. Start the L2 node
@@ -90,7 +92,7 @@ ethrex l2 \
90
92
> - Replace `L1_PROOF_SENDER_PRIVATE_KEY` and `L1_COMMITTER_PRIVATE_KEY` with the private keys for the `L1_PROOF_SENDER_ADDRESS` and `L1_COMMITTER_ADDRESS` from the deployment step.
91
93
> - Replace `L1_RPC_URL` and `PATH_TO_L2_GENESIS_FILE` with the same values used in the deployment step.
92
94
> - Tune throughput with the gas caps:
93
-
> - The L2 block gas limit is stored on-chain in the `CommonBridge` contract. The sequencer fetches this value on startup. See [Maintain Sequencer](../interacting/maintain_sequencer.md) for how to view and update it.
95
+
> - The L2 block gas limit is stored on-chain in the `CommonBridge` contract (set during deployment via `--l2-gas-limit`, defaults to 30000000). The sequencer fetches this value on startup. See [Upgrades](./upgrades.md#from-v10-to-v11) for how to view and update it.
94
96
> -`--committer.batch-gas-limit` (env: `ETHREX_COMMITTER_BATCH_GAS_LIMIT`): Sets the gas limit per batch sent to L1—should be at or above the block gas limit.
95
97
>
96
98
> You can use either the environment variables or the flags to configure these values.
> - The `CommonBridge` and `OnChainProposer` contracts are upgradeable and ownable, with implementations behind proxies initialized during deployment. Replace `COMMON_BRIDGE_OWNER_ADDRESS` and `ON_CHAIN_PROPOSER_OWNER_ADDRESS` with the address of the account you want as the owner. The owner can upgrade implementations or perform administrative actions; for more details, see the Architecture section.
57
58
> - The sequencer components (`L1Committer` and `L1ProofSender`) require funded accounts on the target L1 to advance the network. Replace `L1_COMMITTER_ADDRESS` and `L1_PROOF_SENDER_ADDRESS` with the addresses of those accounts.
58
59
> - Replace `PATH_TO_ENV_FILE` with the path where you want to save the generated environment file. This file contains the deployed contract addresses and other configuration details needed to run the L2 node.
60
+
> - Replace `L2_GAS_LIMIT` with the desired L2 block gas limit (defaults to `30000000`). This value is stored in the `CommonBridge` contract and can be updated later by the bridge owner.
59
61
> - L1 contract deployment uses the `CREATE2` opcode for deterministic addresses. To deploy non-deterministically, include the `--randomize-contract-deployment` flag.
60
62
61
63
## 2. Start the L2 node
@@ -88,7 +90,7 @@ ethrex l2 \
88
90
> - Replace `L1_PROOF_SENDER_PRIVATE_KEY` and `L1_COMMITTER_PRIVATE_KEY` with the private keys for the `L1_PROOF_SENDER_ADDRESS` and `L1_COMMITTER_ADDRESS` from the deployment step.
89
91
> - Replace `L1_RPC_URL` and `PATH_TO_L2_GENESIS_FILE` with the same values used in the deployment step.
90
92
> - Tune throughput with the gas caps:
91
-
> - The L2 block gas limit is stored on-chain in the `CommonBridge` contract. The sequencer fetches this value on startup. See [Maintain Sequencer](../interacting/maintain_sequencer.md) for how to view and update it.
93
+
> - The L2 block gas limit is stored on-chain in the `CommonBridge` contract (set during deployment via `--l2-gas-limit`, defaults to 30000000). The sequencer fetches this value on startup. See [Upgrades](./upgrades.md#from-v10-to-v11) for how to view and update it.
92
94
> -`--committer.batch-gas-limit` (env: `ETHREX_COMMITTER_BATCH_GAS_LIMIT`): Sets the gas limit per batch sent to L1—should be at or above the block gas limit.
93
95
>
94
96
> You can use either the environment variables or the flags to configure these values.
0 commit comments