sequencer

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 19 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NumTxnsToBatchExecute = 10
)

Functions

This section is empty.

Types

type Sequencer

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

func New

func New(
	b *builder.Builder,
	mempool *mempool.SequencerMempool,
	sequencerAddress *felt.Address,
	privKey *ecdsa.PrivateKey,
	blockTime time.Duration,
	logger log.Logger,
) Sequencer

func (*Sequencer) HighestBlockHeader

func (s *Sequencer) HighestBlockHeader() *core.Header

func (*Sequencer) PreConfirmedBlock added in v0.16.0

func (s *Sequencer) PreConfirmedBlock() *core.Block

func (*Sequencer) PreConfirmedState added in v0.17.0

func (s *Sequencer) PreConfirmedState() (core.StateReader, func() error, error)

func (*Sequencer) ReadPreConfirmedChain added in v0.17.0

func (s *Sequencer) ReadPreConfirmedChain() (preconfirmed.ChainReader, error)

func (*Sequencer) RequestPreConfirmedChain added in v0.17.0

func (s *Sequencer) RequestPreConfirmedChain() (preconfirmed.ChainReader, error)

RequestPreConfirmedChain is the same as Sequencer.ReadPreConfirmedChain: the sequencer builds the pre-confirmed block itself, so there is nothing to poll for.

func (*Sequencer) Run

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

func (*Sequencer) RunOnce

func (s *Sequencer) RunOnce() (*core.Header, error)

Execute a single block. Useful for tests.

func (*Sequencer) StartingBlockHeader added in v0.16.6

func (s *Sequencer) StartingBlockHeader() (*core.Header, error)

func (*Sequencer) SubscribeNewHeads

func (s *Sequencer) SubscribeNewHeads() sync.NewHeadSubscription

func (*Sequencer) SubscribePreConfirmed added in v0.16.0

func (s *Sequencer) SubscribePreConfirmed() preconfirmed.Subscription

func (*Sequencer) SubscribeReorg

func (s *Sequencer) SubscribeReorg() sync.ReorgSubscription

The builder has no reorg logic (centralised sequencer that can't reorg)

func (*Sequencer) WithPlugin

func (s *Sequencer) WithPlugin(junoPlugin plugin.JunoPlugin) *Sequencer

Jump to

Keyboard shortcuts

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