calldata

package
v0.0.0-...-1d04f91 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Syncer

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

Syncer responsible for letting the L2 execution engine catching up with protocol's latest pending block through deriving L1 calldata.

func NewSyncer

func NewSyncer(
	ctx context.Context,
	rpc *rpc.Client,
	state *state.State,
	progressTracker *beaconsync.SyncProgressTracker,
	signalServiceAddress common.Address,
) (*Syncer, error)

NewSyncer creates a new syncer instance.

func (*Syncer) ProcessL1Blocks

func (s *Syncer) ProcessL1Blocks(ctx context.Context, l1End *types.Header) error

ProcessL1Blocks fetches all `MxcL1.BlockProposed` events between given L1 block heights, and then tries inserting them into L2 execution engine's block chain.

Jump to

Keyboard shortcuts

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