Documentation ¶
Index ¶
- Variables
- type Header
- func (h *Header) CheckHeaderFinalized(blockRoot common.Hash, instantVerification bool) error
- func (h *Header) FetchExecutionProof(blockRoot common.Hash, instantVerification bool) (scale.ProofPayload, error)
- 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) error
- func (h *Header) SyncHeaders(ctx context.Context) error
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 ErrInterimHeaderNotImported = errors.New("interim finalized header not imported")
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 ¶
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, updateSlotInterval uint64) Header
func (*Header) CheckHeaderFinalized ¶
func (*Header) FetchExecutionProof ¶
func (*Header) SyncCommitteePeriodUpdate ¶
func (*Header) SyncFinalizedHeader ¶
Click to show internal directories.
Click to hide internal directories.