fullseq

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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"`
}

func (*Config) Start

type Sequencer

type Sequencer struct {
	// contains filtered or unexported fields
}

func (*Sequencer) Active

func (s *Sequencer) Active() bool

func (*Sequencer) BuildJob

func (s *Sequencer) BuildJob() work.BuildJob

func (*Sequencer) Close

func (s *Sequencer) Close() error

func (*Sequencer) Commit

func (s *Sequencer) Commit(ctx context.Context) error

func (*Sequencer) ID

func (s *Sequencer) ID() seqtypes.SequencerID

func (*Sequencer) Next

func (s *Sequencer) Next(ctx context.Context) error

func (*Sequencer) Open

func (s *Sequencer) Open(ctx context.Context) error

func (*Sequencer) Prebuilt

func (s *Sequencer) Prebuilt(ctx context.Context, block work.Block) error

func (*Sequencer) Publish

func (s *Sequencer) Publish(ctx context.Context) error

func (*Sequencer) Seal

func (s *Sequencer) Seal(ctx context.Context) error

func (*Sequencer) Sign

func (s *Sequencer) Sign(ctx context.Context) error

func (*Sequencer) Start

func (s *Sequencer) Start(ctx context.Context, head common.Hash) error

func (*Sequencer) Stop

func (s *Sequencer) Stop(ctx context.Context) (hash common.Hash, err error)

func (*Sequencer) String

func (s *Sequencer) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL