status

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT, MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type L1SafeEvent

type L1SafeEvent struct {
	L1Safe eth.L1BlockRef
}

func (L1SafeEvent) String

func (ev L1SafeEvent) String() string

type L1UnsafeEvent

type L1UnsafeEvent struct {
	L1Unsafe eth.L1BlockRef
}

func (L1UnsafeEvent) String

func (ev L1UnsafeEvent) String() string

type Metrics

type Metrics interface {
	RecordL1ReorgDepth(d uint64)
	RecordL1Ref(name string, ref eth.L1BlockRef)
}

type StatusTracker

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

func NewStatusTracker

func NewStatusTracker(log log.Logger, metrics Metrics) *StatusTracker

func (*StatusTracker) L1Head

func (st *StatusTracker) L1Head() eth.L1BlockRef

L1Head is a helper function; the L1 head is closely monitored for confirmation-distance logic.

func (*StatusTracker) OnEvent

func (st *StatusTracker) OnEvent(ev event.Event) bool

func (*StatusTracker) SyncStatus

func (st *StatusTracker) SyncStatus() *eth.SyncStatus

SyncStatus is thread safe, and reads the latest view of L1 and L2 block labels

Jump to

Keyboard shortcuts

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