compliance

package
v0.26.11 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: AGPL-3.0 Imports: 0 Imported by: 11

Documentation

Index

Constants

View Source
const MinSkipNewProposalsThreshold = 1000

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// SkipNewProposalsThreshold defines the threshold where, if we observe a new
	// proposal which is this far behind our local latest finalized, we drop the
	// proposal rather than cache it.
	SkipNewProposalsThreshold uint64
}

Config is shared config for consensus and collection compliance engines, and the consensus follower engine.

func DefaultConfig

func DefaultConfig() Config

type Opt

type Opt func(*Config)

func WithSkipNewProposalsThreshold

func WithSkipNewProposalsThreshold(threshold uint64) Opt

WithSkipNewProposalsThreshold returns an option to set the skip new proposals threshold. For inputs less than the minimum threshold, the minimum threshold will be set instead.

Jump to

Keyboard shortcuts

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