github.com/ethereum-optimism/optimism@v1.7.2/op-node/rollup/driver/config.go (about)

     1  package driver
     2  
     3  type Config struct {
     4  	// VerifierConfDepth is the distance to keep from the L1 head when reading L1 data for L2 derivation.
     5  	VerifierConfDepth uint64 `json:"verifier_conf_depth"`
     6  
     7  	// SequencerConfDepth is the distance to keep from the L1 head as origin when sequencing new L2 blocks.
     8  	// If this distance is too large, the sequencer may:
     9  	// - not adopt a L1 origin within the allowed time (rollup.Config.MaxSequencerDrift)
    10  	// - not adopt a L1 origin that can be included on L1 within the allowed range (rollup.Config.SeqWindowSize)
    11  	// and thus fail to produce a block with anything more than deposits.
    12  	SequencerConfDepth uint64 `json:"sequencer_conf_depth"`
    13  
    14  	// SequencerEnabled is true when the driver should sequence new blocks.
    15  	SequencerEnabled bool `json:"sequencer_enabled"`
    16  
    17  	// SequencerStopped is false when the driver should sequence new blocks.
    18  	SequencerStopped bool `json:"sequencer_stopped"`
    19  
    20  	// SequencerMaxSafeLag is the maximum number of L2 blocks for restricting the distance between L2 safe and unsafe.
    21  	// Disabled if 0.
    22  	SequencerMaxSafeLag uint64 `json:"sequencer_max_safe_lag"`
    23  }