Documentation
¶
Index ¶
- type Config
- type Sequencer
- func (s *Sequencer) Active() bool
- func (s *Sequencer) BuildJob() work.BuildJob
- func (s *Sequencer) Close() error
- func (s *Sequencer) Commit(ctx context.Context) error
- func (s *Sequencer) ID() seqtypes.SequencerID
- func (s *Sequencer) Next(ctx context.Context) error
- func (s *Sequencer) Open(ctx context.Context) error
- func (s *Sequencer) Prebuilt(ctx context.Context, block work.Block) error
- func (s *Sequencer) Publish(ctx context.Context) error
- func (s *Sequencer) Seal(ctx context.Context) error
- func (s *Sequencer) Sign(ctx context.Context) error
- func (s *Sequencer) Start(ctx context.Context, head common.Hash) error
- func (s *Sequencer) Stop(ctx context.Context) (hash common.Hash, err error)
- func (s *Sequencer) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ChainID eth.ChainID `yaml:"chainID"`
Builder seqtypes.BuilderID `yaml:"builder"`
Signer seqtypes.SignerID `yaml:"signer,omitempty"`
Committer seqtypes.CommitterID `yaml:"committer,omitempty"`
Publisher seqtypes.PublisherID `yaml:"publisher,omitempty"`
// SequencerConfDepth is the distance to keep from the L1 head as origin when sequencing new L2 blocks.
// If this distance is too large, the sequencer may:
// - not adopt a L1 origin within the allowed time (rollup.Config.MaxSequencerDrift)
// - not adopt a L1 origin that can be included on L1 within the allowed range (rollup.Config.SeqWindowSize)
// and thus fail to produce a block with anything more than deposits.
SequencerConfDepth uint64 `json:"sequencer_conf_depth"`
// SequencerEnabled is true when the sequencer is operational.
SequencerEnabled bool `json:"sequencer_enabled"`
// SequencerStopped is false when the sequencer should not be auto-sequencing at startup.
SequencerStopped bool `json:"sequencer_stopped"`
// SequencerMaxSafeLag is the maximum number of L2 blocks for restricting the distance between L2 safe and unsafe.
// Disabled if 0.
SequencerMaxSafeLag uint64 `json:"sequencer_max_safe_lag"`
}
Click to show internal directories.
Click to hide internal directories.