Documentation
¶
Index ¶
- Variables
- func NewProvider(opts ...options.Option[Filter]) module.Provider[*engine.Engine, filter.Filter]
- func WithMaxAllowedWallClockDrift(d time.Duration) options.Option[Filter]
- func WithMinCommittableSlotAge(age slot.Index) options.Option[Filter]
- func WithSignatureValidation(validation bool) options.Option[Filter]
- type Filter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorCommitmentNotCommittable = errors.New("a block cannot commit to a slot that cannot objectively be committable yet") ErrorsBlockTimeTooFarAheadInFuture = errors.New("a block cannot be too far ahead in the future") ErrorsInvalidSignature = errors.New("block has invalid signature") ErrorsSignatureValidationFailed = errors.New("error validating block signature") )
Functions ¶
func NewProvider ¶
func WithMaxAllowedWallClockDrift ¶
WithMaxAllowedWallClockDrift specifies how far in the future are blocks allowed to be ahead of our own wall clock (defaults to 0 seconds).
func WithMinCommittableSlotAge ¶
WithMinCommittableSlotAge specifies how old a slot has to be for it to be committable.
Types ¶
Click to show internal directories.
Click to hide internal directories.