header

package
v0.0.0-...-2eef473 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBeaconHeaderNotFinalized = errors.New("beacon header not finalized")
View Source
var ErrExecutionHeaderNotImported = errors.New("execution header not imported")
View Source
var ErrFinalizedHeaderNotImported = errors.New("finalized header not imported")
View Source
var ErrFinalizedHeaderUnchanged = errors.New("finalized header unchanged")
View Source
var ErrSyncCommitteeLatency = errors.New("sync committee latency found")
View Source
var ErrSyncCommitteeNotImported = errors.New("sync committee not imported")

Functions

This section is empty.

Types

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

func New

func New(writer parachain.ChainWriter, client api.BeaconAPI, setting config.SpecSettings, store store.BeaconStore, protocol *protocol.Protocol) Header

func (*Header) FetchExecutionProof

func (h *Header) FetchExecutionProof(blockRoot common.Hash) (scale.HeaderUpdatePayload, error)

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) error

func (*Header) SyncHeaders

func (h *Header) SyncHeaders(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