header

package
v0.0.0-...-49ff922 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFinalizedHeaderNotImported = errors.New("finalized header not imported")
View Source
var ErrFinalizedHeaderUnchanged = errors.New("finalized header unchanged")

Functions

This section is empty.

Types

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

func New

func New(writer *parachain.ParachainWriter, beaconEndpoint string, slotsInEpoch, epochsPerSyncCommitteePeriod uint64, maxSlotsPerHistoricalRoot int, activeSpec config.ActiveSpec) Header

func (*Header) Sync

func (h *Header) Sync(ctx context.Context, eg *errgroup.Group) error

func (*Header) SyncCommitteePeriodUpdate

func (h *Header) SyncCommitteePeriodUpdate(ctx context.Context, period uint64) error

func (*Header) SyncFinalizedHeader

func (h *Header) SyncFinalizedHeader(ctx context.Context) (scale.FinalizedHeaderUpdate, error)

func (*Header) SyncHeader

func (h *Header) SyncHeader(ctx context.Context, headerUpdate scale.HeaderUpdate, slotsLeft uint64) error

func (*Header) SyncHeaders

func (h *Header) SyncHeaders(ctx context.Context, fromHeaderBlockRoot, toHeaderBlockRoot common.Hash) error

func (*Header) SyncHeadersFromFinalized

func (h *Header) SyncHeadersFromFinalized(ctx context.Context) error

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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