Protocol Configuration Constants

Table of Contents

We use the following global constants about Ethereum:

  • uint256 L1_SLOT_TIME = 12 -- The number of seconds between L1 slots.

The protocol design depends on the following configuration constants.

  • uint256 MAX_SEQUENCER_DRIFT = 60 -- The maximum number of seconds the L2 timestamp may be ahead of the L1 timestamp upon sequencing.
  • uint256 MAX_SEQUENCER_DELAY = 86400 -- The maximum number of seconds the L2 timestamp may be behind the L1 timestamp upon committing a preblock to L1.
  • uint256 MAX_L1_ORIGIN_DELAY = 7200 -- The maximum number of L1 blocks the L1 origin may be behind the L1 block number upon sequencing.
  • uint256 L1_INITIATION_DELAY = 10 -- The number of L1 blocks after which L1-initiated transactions are force included in L2 blocks.
  • uint256 MAX_PREBLOCKS_PER_BATCH = 100 -- The maximum number of preblocks in a batch.
  • uint256 MAX_TRANSACTIONS_PER_BLOCK = 5 -- The maximum number of transactions in a rollup block.
  • bytes32 L1_INITIATED_SEQUENCER_ADDRESS -- The keystore address of the sequencer to send fees to for L1-initiated transactions.