Documentation ¶
Index ¶
- Variables
- type Header
- func (h *Header) Sync(ctx context.Context, eg *errgroup.Group) error
- func (h *Header) SyncCommitteePeriodUpdate(ctx context.Context, period uint64) error
- func (h *Header) SyncFinalizedHeader(ctx context.Context) (scale.FinalizedHeaderUpdate, error)
- func (h *Header) SyncHeader(ctx context.Context, headerUpdate scale.HeaderUpdate, slotsLeft uint64) error
- func (h *Header) SyncHeaders(ctx context.Context, fromHeaderBlockRoot, toHeaderBlockRoot common.Hash) error
- func (h *Header) SyncHeadersFromFinalized(ctx context.Context) error
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 ¶
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) SyncCommitteePeriodUpdate ¶
func (*Header) SyncFinalizedHeader ¶
func (*Header) SyncHeader ¶
func (*Header) SyncHeaders ¶
Click to show internal directories.
Click to hide internal directories.